Skip to content

Commit 6aa0fd5

Browse files
authored
Merge pull request #142 from outoftime/mustache
Add Mustache and Handlebars to available libraries
2 parents a6cfb50 + ab5673b commit 6aa0fd5

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

bower.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
"normalize-css": "normalize.css#^4.1.1",
3333
"jquery": "^2.2.3",
3434
"inconsolata-webfont": "^1.0.3",
35-
"roboto-webfont-bower": "roboto-webfont#^0.1.1"
35+
"roboto-webfont-bower": "roboto-webfont#^0.1.1",
36+
"mustache.js": "mustache#^2.2.1",
37+
"handlebars": "^4.0.5"
3638
}
3739
}

src/config/libraries.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,26 @@ const libraries = {
2626
),
2727
predefined: ['_'],
2828
},
29+
mustache: {
30+
name: 'Mustache.js',
31+
javascript: fs.readFileSync(
32+
path.join(
33+
__dirname,
34+
'../../bower_components/mustache.js/mustache.js'
35+
)
36+
),
37+
predefined: ['Mustache'],
38+
},
39+
handlebars: {
40+
name: 'Handlebars.js',
41+
javascript: fs.readFileSync(
42+
path.join(
43+
__dirname,
44+
'../../bower_components/handlebars/handlebars.js'
45+
)
46+
),
47+
predefined: ['Handlebars'],
48+
},
2949
angular: {
3050
name: 'AngularJS',
3151
javascript: fs.readFileSync(

0 commit comments

Comments
 (0)