Skip to content

Commit daa8c40

Browse files
author
ashley williams
committed
Setup lo-dash and underscore configuration
- Add lo-dash template loader to bower.json - Add 'tmpl' to require.js config - Configure lo-dash to load underscore templates
1 parent 04ade31 commit daa8c40

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

bower.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"jquery": "~2.1.1",
1313
"backbone": "~1.1.2",
1414
"lodash": "~2.4.1",
15-
"requirejs": "~2.1.14"
15+
"requirejs": "~2.1.14",
16+
"lodash-template-loader": "~0.1.6"
1617
}
1718
}

src/requirejs-config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
paths: {
77
backbone: 'bower_components/backbone/backbone',
88
jquery: 'bower_components/jquery/dist/jquery',
9-
underscore: 'bower_components/lodash/dist/lodash.underscore'
9+
underscore: 'bower_components/lodash/dist/lodash.underscore',
10+
tmpl: 'bower_components/lodash-template-loader/loader'
11+
},
12+
map: {
13+
'tmpl': {
14+
'lodash': 'underscore'
15+
},
1016
},
1117

1218
deps: ['main']

0 commit comments

Comments
 (0)