Skip to content

Commit

Permalink
Setup lo-dash and underscore configuration
Browse files Browse the repository at this point in the history
- Add lo-dash template loader to bower.json
- Add 'tmpl' to require.js config
- Configure lo-dash to load underscore templates
  • Loading branch information
ashley williams committed Sep 8, 2014
1 parent 04ade31 commit daa8c40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"jquery": "~2.1.1",
"backbone": "~1.1.2",
"lodash": "~2.4.1",
"requirejs": "~2.1.14"
"requirejs": "~2.1.14",
"lodash-template-loader": "~0.1.6"
}
}
8 changes: 7 additions & 1 deletion src/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
paths: {
backbone: 'bower_components/backbone/backbone',
jquery: 'bower_components/jquery/dist/jquery',
underscore: 'bower_components/lodash/dist/lodash.underscore'
underscore: 'bower_components/lodash/dist/lodash.underscore',
tmpl: 'bower_components/lodash-template-loader/loader'
},
map: {
'tmpl': {
'lodash': 'underscore'
},
},

deps: ['main']
Expand Down

0 comments on commit daa8c40

Please sign in to comment.