I'm using the require.js text plugin with the text! syntaxt to render xhr responses as html.
text : 'libs/require/text' ...
In my views I have defined them as
define([
'text!templates/categories.html'
, 'models/Categories'
, 'views/CategoryView'
], ...
Everything works as it should locally.
However when I pushed this code to a server it started loading the *.html as <script></script>
elements.
Further more, it was attaching a .js extension to the .html file name as well.
ANy thoughts? The assets being loaded are CORS.