Skip to content

Commit

Permalink
renamed templates to JSTtemplates
Browse files Browse the repository at this point in the history
  • Loading branch information
timhc22 committed Apr 20, 2015
1 parent 8f5d954 commit 9b3cad9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ build
Desktop.ini
node_modules
.idea
/src/javascript/_templates.js
/src/javascript/_JSTtemplates.js
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ gulp.task('compileTemplates', function () {
.pipe(template())
.pipe(insert.prepend("var _ = require('underscore');" + "\n")) //ADD REQUIRE UNDERSCORE TO TEMPLATES FILE
.pipe(insert.prepend("//THIS JST TEMPLATES FILE IS AUTOGENERATED BY GULP AND GITIGNORED " + "\n")) //ADD REQUIRE UNDERSCORE TO TEMPLATES FILE
.pipe(concat('_templates.js'))
.pipe(concat('_JSTtemplates.js'))
.pipe(gulp.dest(config.templates.dest));
});

Expand Down
2 changes: 1 addition & 1 deletion src/javascript/_backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var Backbone = require('backbone');
Backbone.$ = $;
Backbone.LocalStorage = require("backbone.localstorage");

require('./_templates'); //include JST templates (gitignored) doesn't work if assign to a variable
require('./_JSTtemplates'); //include JST templates (gitignored) doesn't work if assign to a variable

//todo module.exports
//_.templateSettings = { interpolate : /\{\{(.+?)\}\}/g };
Expand Down

0 comments on commit 9b3cad9

Please sign in to comment.