-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
51 lines (51 loc) · 2.62 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"author": {
"name": "toran billups",
"email": "toranb@gmail.com"
},
"name": "ember-template-compiler",
"description": "An npm module for the ember-template-compiler.js file that ships with ember.js",
"version": "1.6.1",
"repository": {
"type": "git",
"url": "https://github.com/toranb/ember-template-compiler"
},
"scripts": {
"test": "./node_modules/jasmine-node/bin/jasmine-node tests/"
},
"keywords": [
"Ember.js",
"Handlebars.js"
],
"main": "./lib/main",
"bin": {
"ember-template-compiler": "./bin/compiler"
},
"engines": {
"node": ">=v0.8.1"
},
"licenses": [
"MIT"
],
"dependencies": {},
"devDependencies": {
"jasmine-node": "~1.11",
"handlebars": "~1"
},
"peerDependencies": {
"handlebars": "~1"
},
"optionalDependencies": {},
"readme": "\nAn npm module for the ember-template-compiler.js file that ships with ember.js\n\n##What can I do with this?\n\nIf you have a client build process and need to compile handlebars templates for ember.js\n\n npm install ember-template-compiler\n\n var compiler = require('ember-template-compiler');\n var template = fs.readFileSync('foo.handlebars').toString();\n var input = compiler.precompile(template).toString();\n var output = \"Ember.TEMPLATES['foo'] = Ember.Handlebars.template(\" + input + \");\";\n\nAdditionally you can pass a second argument into `precompile` which will build the precompiled template as an object (`true` or `undefined`) or as a string (`false`). Building as a string is more efficient than building as an object then converting it to a string. \n\n var input = compiler.precompile(template, false);\n var output = \"Ember.TEMPLATES['foo'] = Ember.Handlebars.template(\" + input + \");\";\n\n##Handlebars Version\n\nThis package will utilize any recent Handlebars version. To require a specific version\nsimply specify it in your `package.json`. By default the latest 1.x version will be used.\n\n##Development\n\nTo run the tests you must have the following node packages installed: `jasmine-node`, and `handlebars`. Then run\n\n npm test\n\n## License\n\nCopyright © 2013 Toran Billups\n\nLicensed under the MIT License\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/toranb/ember-template-compiler/issues"
},
"homepage": "https://github.com/toranb/ember-template-compiler",
"_id": "ember-template-compiler@1.6.1",
"dist": {
"shasum": "00448a1812e58ae87e84d0ae80bd248c8ae7b0a1"
},
"_from": "ember-template-compiler@>=1 <2",
"_resolved": "https://registry.npmjs.org/ember-template-compiler/-/ember-template-compiler-1.6.1.tgz"
}