Skip to main content

All Questions

0 votes
1 answer
1k views

Backbone and requireJSe error: 404 Not Found when loading a template

I've got the following error messages in the console: http://localhost/web/js/text.js 404 Not Found if a delete text! in "text!templates/collector/indexTemplate.html" form collector_index.js, I've ...
mstafkmx's user avatar
  • 429
0 votes
2 answers
1k views

Getting a sub-collection of a model in a template with Underscore and Backbone

I have a JSon like this that is a collection of issues: { "id": "505", "issuedate": "2013-01-15 06:00:00", "lastissueupdate": "2013-01-15 13:51:08", "...
brunettia's user avatar
  • 135
0 votes
1 answer
297 views

Using text.js with require.js how can I create one template html file but grab each script template individually?

I'm using require.js and text.js to load a template file that has a bunch of <script> templates in it: e.g. /scripts/templates/comments.html <script type="text/template" id="js-comment-...
bob_cobb's user avatar
  • 2,239
15 votes
2 answers
12k views

Localizing templates using require.js, backbone and underscore

This question is about templating and localizing, using require.js and underscore templates through backbone.js. The application will need to be localised on the fly. Before embarking down a path ...
Robbie's user avatar
  • 17.7k