{"_id":"grunt-template-module","_rev":"26-30a9faf5f2d607d801ce870f5c820158","name":"grunt-template-module","description":"Precompile templates to a file with option to expose templates as a node/commonjs module.","dist-tags":{"latest":"0.5.1"},"versions":{"0.1.0":{"name":"grunt-template-module","description":"Precompile Underscore templates to file with option to expose templates from a module.","version":"0.1.0","homepage":"https://github.com/terryweiss/grunt-template-module","contributors":[{"name":"Grunt Team","url":"http://gruntjs.com/"},{"name":"Terry Weiss","url":"http://terryweiss.net"}],"repository":{"type":"git","url":"git://github.com/terryweiss/grunt-template-module.git"},"bugs":{"url":"https://github.com/terryweiss/grunt-template-module/issues"},"licenses":[{"type":"MIT","url":"https://github.com/terryweiss/grunt-template-module/blob/master/LICENSE-MIT"}],"main":"grunt.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"lodash":"~1.0.0","grunt-lib-contrib":"~0.3.0","underscore":"~1.4.0","ejs":"~0.8.3","grunt-beautify":"~0.1.1"},"devDependencies":{"grunt":"~0.3.0","grunt-contrib-nodeunit":"~0.1.0"},"keywords":["gruntplugin","jst","ejs","lodash","underscore","templates"],"_id":"grunt-template-module@0.1.0","dist":{"shasum":"469348979be025f7ba34a1a39fa476d065361a67","tarball":"https://registry.npmjs.org/grunt-template-module/-/grunt-template-module-0.1.0.tgz","integrity":"sha512-d/kNxZJxNQY9bAOSsFA2OOusB3K2tJWX81Yl2fcDL4jwQeFtNKRBobAyadGDjYFeq8xWBWw4VTbGBbOfEJMfIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE1A2kcqiXDoiRbI+169ZBU4SNBmJ0UHYcbAuRdVZc2EAiEAjoCmvJczBunNyMq+IULD4p4/f47DpLNsOVctWJuNkkw="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"terryweiss","email":"me@terryweiss.net"},"maintainers":[{"name":"terryweiss","email":"me@terryweiss.net"}]},"0.1.1":{"name":"grunt-template-module","description":"Precompile templates to a file with option to expose templates as a node/commonjs module.","version":"0.1.1","homepage":"https://github.com/terryweiss/grunt-template-module","contributors":[{"name":"Terry Weiss","url":"http://terryweiss.net"},{"name":"Grunt Team","url":"http://gruntjs.com/"}],"repository":{"type":"git","url":"git://github.com/terryweiss/grunt-template-module.git"},"bugs":{"url":"https://github.com/terryweiss/grunt-template-module/issues"},"licenses":[{"type":"MIT","url":"https://github.com/terryweiss/grunt-template-module/blob/master/LICENSE-MIT"}],"engines":{"node":">=0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"lodash":"~1.0.0","underscore":"~1.4.0","ejs":"~0.8.3","grunt-beautify":"~0.1.1"},"devDependencies":{"grunt":">=0.3.0","grunt-contrib-nodeunit":"~0.1.0"},"keywords":["gruntplugin","jst","ejs","lodash","underscore","templates"],"_id":"grunt-template-module@0.1.1","dist":{"shasum":"eeee35ae4a12bc827c2e7adf2c0beb29806f3702","tarball":"https://registry.npmjs.org/grunt-template-module/-/grunt-template-module-0.1.1.tgz","integrity":"sha512-AFrjowT3aPYcaE29mCaK0yomIs8a2b01XKrywEB960S6cE2c9WU/7ToeyPG5PJ83AOarBuN1L8NhdmDorz8+qA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHNmDtOLW3VWiF+xrJln4F50B5Q7qlESCySthEO4h0PQIhAPdlrGC7sDZqETQudJsa7LIc7kJGNqE1QJr3UFc1QhyS"}]},"_npmVersion":"1.1.69","_npmUser":{"name":"terryweiss","email":"me@terryweiss.net"},"maintainers":[{"name":"terryweiss","email":"me@terryweiss.net"}]},"0.1.2":{"name":"grunt-template-module","description":"Precompile templates to a file with option to expose templates as a node/commonjs module.","version":"0.1.2","homepage":"https://github.com/terryweiss/grunt-template-module","contributors":[{"name":"Terry Weiss","url":"http://terryweiss.net"},{"name":"Grunt Team","url":"http://gruntjs.com/"}],"repository":{"type":"git","url":"git://github.com/terryweiss/grunt-template-module.git"},"bugs":{"url":"https://github.com/terryweiss/grunt-template-module/issues"},"licenses":[{"type":"MIT","url":"https://github.com/terryweiss/grunt-template-module/blob/master/LICENSE-MIT"}],"engines":{"node":">=0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"lodash":"~1.0.0","underscore":"~1.4.0","ejs":"~0.8.3","grunt-beautify":"~0.1.1","node-beautify":"~0.0.2"},"devDependencies":{"grunt":">=0.3.0","grunt-contrib-nodeunit":"~0.1.0"},"keywords":["gruntplugin","jst","ejs","lodash","underscore","templates"],"_id":"grunt-template-module@0.1.2","dist":{"shasum":"b0f0266dd3a976b114a8f17e95e872693f4fe878","tarball":"https://registry.npmjs.org/grunt-template-module/-/grunt-template-module-0.1.2.tgz","integrity":"sha512-YsD5dgxj+yJGRq05TZT7NrAZp9MLZN7Jgx4GLLwAuT/GofIudLJfFLJYbqId5HtWSX5Ag8Tg/I3s3UB/AJYJfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIENbBEs483cXmNuGuGOwJWnpwz3yVBjWrEPEzsDgPJyrAiEAl5ptDmgIS0KW0U2Gl8I0ET7sYKl7vglzofFCvHFOGbo="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"terryweiss","email":"me@terryweiss.net"},"maintainers":[{"name":"terryweiss","email":"me@terryweiss.net"}]},"0.2.0":{"name":"grunt-template-module","description":"Precompile templates to a file with option to expose templates as a node/commonjs module.","version":"0.2.0","homepage":"https://github.com/terryweiss/grunt-template-module","contributors":[{"name":"Terry Weiss","url":"http://terryweiss.net"},{"name":"Grunt Team","url":"http://gruntjs.com/"}],"repository":{"type":"git","url":"git://github.com/terryweiss/grunt-template-module.git"},"bugs":{"url":"https://github.com/terryweiss/grunt-template-module/issues"},"licenses":[{"type":"MIT","url":"https://github.com/terryweiss/grunt-template-module/blob/master/LICENSE-MIT"}],"engines":{"node":">=0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"lodash":"~1.0.0","underscore":"~1.4.0","ejs":"~0.8.3","grunt-beautify":"~0.1.1","node-beautify":"~0.0.2"},"devDependencies":{"grunt":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt-contrib-jshint":"~0.1.1"},"keywords":["gruntplugin","jst","ejs","lodash","underscore","templates"],"_id":"grunt-template-module@0.2.0","dist":{"shasum":"278eea87aea3d487cc3361e6a8121a9d6d4826f5","tarball":"https://registry.npmjs.org/grunt-template-module/-/grunt-template-module-0.2.0.tgz","integrity":"sha512-Sk7KU2kjkK/VWlU2SeiPyc6z5NkdR7q8IatV7k9iUdNnqYS2h9TTZm/D2FsbMx/ouf12cnY8pGazE9TVrMkBcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIETAHNf57kKi7rVKdFO0J78jBMRc6BmTKwLK3UKQ+ckhAiAZA9Cacu6IMX0Xd4Gm9LC/YSSp+9SOhv0Kel+0C6o1vg=="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"terryweiss","email":"me@terryweiss.net"},"maintainers":[{"name":"terryweiss","email":"me@terryweiss.net"}]},"0.3.0":{"name":"grunt-template-module","description":"Precompile templates to a file with option to expose templates as a node/commonjs module.","version":"0.3.0","homepage":"https://github.com/terryweiss/grunt-template-module","contributors":[{"name":"Terry Weiss","url":"http://terryweiss.net"},{"name":"Grunt Team","url":"http://gruntjs.com/"}],"repository":{"type":"git","url":"git://github.com/terryweiss/grunt-template-module.git"},"bugs":{"url":"https://github.com/terryweiss/grunt-template-module/issues"},"licenses":[{"type":"MIT","url":"https://github.com/terryweiss/grunt-template-module/blob/master/LICENSE-MIT"}],"engines":{"node":">=0.8.0"},"scripts":{"test":"grunt test"},"keywords":["gruntplugin","grunt","compile template","jst","ejs","lodash","underscore","templates"],"dependencies":{"ejs":"^1.0.0","lodash":"^2.4.1","node-beautify":"0.0.2","underscore":"^1.6.0"},"devDependencies":{"grunt":"^0.4.5","grunt-beautify":"^0.1.1","grunt-contrib-jshint":"^0.10.0","grunt-contrib-nodeunit":"^0.4.0"},"_id":"grunt-template-module@0.3.0","_shasum":"ce3d02449f2f3c67db57534ee2af70ba994a766a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"terryweiss","email":"me@terryweiss.net"},"maintainers":[{"name":"terryweiss","email":"me@terryweiss.net"}],"dist":{"shasum":"ce3d02449f2f3c67db57534ee2af70ba994a766a","tarball":"https://registry.npmjs.org/grunt-template-module/-/grunt-template-module-0.3.0.tgz","integrity":"sha512-Oc+V6qwXEmdmL2Fk1kAhC7lrW3egigegGrhx41TPWUsu7s9N3IG9vpVnZt8/pGu5LwZZI1Ajr4R0aEYJ6rcYNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIENS/P+Sjwxm8QeDtDGHGbek/1suaTAWx33JqKp4bCWpAiEArMIjq+kT19uk3a4s1DP4tstaYy7viCrG4HgU+RA6XNQ="}]}},"0.3.2":{"name":"grunt-template-module","description":"Precompile templates to a file with option to expose templates as a node/commonjs module.","version":"0.3.2","homepage":"https://github.com/terryweiss/grunt-template-module","contributors":[{"name":"Terry Weiss","url":"http://terryweiss.net"},{"name":"Grunt Team","url":"http://gruntjs.com/"}],"repository":{"type":"git","url":"git://github.com/terryweiss/grunt-template-module.git"},"bugs":{"url":"https://github.com/terryweiss/grunt-template-module/issues"},"licenses":[{"type":"MIT","url":"https://github.com/terryweiss/grunt-template-module/blob/master/LICENSE-MIT"}],"engines":{"node":">=0.8.0"},"scripts":{"test":"grunt test"},"keywords":["gruntplugin","grunt","compile template","jst","ejs","lodash","underscore","templates"],"dependencies":{"ejs":"~1.0.0","lodash":"~2.4.1","underscore":"~1.6.0","node-beautify":"0.0.2"},"devDependencies":{"grunt":"^0.4.5","grunt-beautify":"^0.1.1","grunt-contrib-jshint":"^0.10.0","grunt-contrib-nodeunit":"^0.4.0"},"_id":"grunt-template-module@0.3.2","dist":{"shasum":"5552048d6b20f13b397f4ffa6d9d6710f3af7506","tarball":"https://registry.npmjs.org/grunt-template-module/-/grunt-template-module-0.3.2.tgz","integrity":"sha512-0AO/L0RhneCFgfEip/YNkpF4USwhrWL1+NC9X0kUFT7AcuMRCLh754spwEzLuX9rQEcABC1gNvbW97gzFybzig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+272ICLmHScHG1YuS419m9ipGsQ+/U+4gWz7Eplo75gIgFcH3ZDRNr9g2sNLmMc3Ne4s7tOP8t6XphQqAfqapUso="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"terryweiss","email":"me@terryweiss.net"},"maintainers":[{"name":"terryweiss","email":"me@terryweiss.net"}]},"0.4.0":{"name":"grunt-template-module","description":"Precompile templates to a file with option to expose templates as a node/commonjs module.","version":"0.4.0","homepage":"https://github.com/terryweiss/grunt-template-module","contributors":[{"name":"Terry Weiss","url":"http://terryweiss.net"},{"name":"Grunt Team","url":"http://gruntjs.com/"}],"repository":{"type":"git","url":"git://github.com/terryweiss/grunt-template-module.git"},"bugs":{"url":"https://github.com/terryweiss/grunt-template-module/issues"},"licenses":[{"type":"MIT","url":"https://github.com/terryweiss/grunt-template-module/blob/master/LICENSE-MIT"}],"engines":{"node":">=0.8.0"},"scripts":{"test":"grunt test"},"keywords":["gruntplugin","grunt","compile template","jst","ejs","lodash","underscore","templates"],"dependencies":{"ejs":"~1.0.0","lodash":"~2.4.1","underscore":"~1.6.0","node-beautify":"0.0.2"},"devDependencies":{"grunt":"^0.4.5","grunt-beautify":"^0.1.1","grunt-contrib-jshint":"^0.10.0","grunt-contrib-nodeunit":"^0.4.0"},"_id":"grunt-template-module@0.4.0","dist":{"shasum":"9d2e37b61c07d8d40ad088b1f67e62612b2a16b1","tarball":"https://registry.npmjs.org/grunt-template-module/-/grunt-template-module-0.4.0.tgz","integrity":"sha512-/VbM0yl9ZTJbvKX/sJDxh6sx4qOppMkhsKfbf7cpyKFGsl+mqiO7dynTeSVsug0qr6kBuj1rcmCNiGfQOpscrA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDT0DqdgKMYA1hzywSBjNtlWmNz90DCKMdNVvshKY2LFQIgTbJfmSFkgvXAd2H+O5TFAZLQaHLjMuPNanULPtZWSmo="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"terryweiss","email":"me@terryweiss.net"},"maintainers":[{"name":"terryweiss","email":"me@terryweiss.net"}]},"0.5.0":{"name":"grunt-template-module","description":"Precompile templates to a file with option to expose templates as a node/commonjs module.","version":"0.5.0","homepage":"https://github.com/terryweiss/grunt-template-module","contributors":[{"name":"Terry Weiss","url":"http://terryweiss.net"},{"name":"Grunt Team","url":"http://gruntjs.com/"}],"repository":{"type":"git","url":"git://github.com/terryweiss/grunt-template-module.git"},"bugs":{"url":"https://github.com/terryweiss/grunt-template-module/issues"},"licenses":[{"type":"MIT","url":"https://github.com/terryweiss/grunt-template-module/blob/master/LICENSE-MIT"}],"engines":{"node":">=0.8.0"},"scripts":{"test":"grunt test"},"keywords":["gruntplugin","grunt","compile template","jst","ejs","lodash","underscore","templates"],"dependencies":{"ejs":"~1.0.0","lodash":"~2.4.1","underscore":"~1.6.0","node-beautify":"0.0.2"},"devDependencies":{"grunt":"^0.4.5","grunt-beautify":"^0.1.1","grunt-contrib-jshint":"^0.10.0","grunt-contrib-nodeunit":"^0.4.0"},"gitHead":"e2bd1d888e22e229d23def750c740d22f222a292","_id":"grunt-template-module@0.5.0","_shasum":"8a6184195706ae6b57cc8ba0b079243cc7b28656","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"terryweiss","email":"me@terryweiss.net"},"maintainers":[{"name":"terryweiss","email":"me@terryweiss.net"}],"dist":{"shasum":"8a6184195706ae6b57cc8ba0b079243cc7b28656","tarball":"https://registry.npmjs.org/grunt-template-module/-/grunt-template-module-0.5.0.tgz","integrity":"sha512-Q4+aXdwHs8Nfi6mbH8Cbr82+tLsrm25nF3L/HqDpgb6hU87jp1+QU+9CClYRwJg/uIIJ97mEh8B6QydQ0wcvkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBUqOsw66dti9t53hEkGnNla9Xgy357Qe5BrFmwv2QIQAiALsu3bVXPBiP/kf3J6gWB2KE53NnkZE8+yKOyo0wP3kQ=="}]}},"0.5.1":{"name":"grunt-template-module","description":"Precompile templates to a file with option to expose templates as a node/commonjs module.","version":"0.5.1","homepage":"https://github.com/terryweiss/grunt-template-module","contributors":[{"name":"Terry Weiss","url":"http://terryweiss.net"},{"name":"Grunt Team","url":"http://gruntjs.com/"}],"repository":{"type":"git","url":"git://github.com/terryweiss/grunt-template-module.git"},"bugs":{"url":"https://github.com/terryweiss/grunt-template-module/issues"},"licenses":[{"type":"MIT","url":"https://github.com/terryweiss/grunt-template-module/blob/master/LICENSE-MIT"}],"engines":{"node":">=0.8.0"},"scripts":{"test":"grunt test"},"keywords":["gruntplugin","grunt","compile template","jst","ejs","lodash","underscore","templates"],"dependencies":{"ejs":"~1.0.0","lodash":"~2.4.1","underscore":"~1.6.0","node-beautify":"0.0.2"},"devDependencies":{"grunt":"^0.4.5","grunt-beautify":"^0.1.1","grunt-contrib-jshint":"^0.10.0","grunt-contrib-nodeunit":"^0.4.0"},"gitHead":"5afc9a2f0eb19ceabc7f082641ff73fa69a37a0b","_id":"grunt-template-module@0.5.1","_shasum":"6715feffc26929abe8763ff748048bdd35aa965e","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"terryweiss","email":"me@terryweiss.net"},"maintainers":[{"name":"terryweiss","email":"me@terryweiss.net"}],"dist":{"shasum":"6715feffc26929abe8763ff748048bdd35aa965e","tarball":"https://registry.npmjs.org/grunt-template-module/-/grunt-template-module-0.5.1.tgz","integrity":"sha512-cdHMhXm8scLLvG8TUFU1Bpf8WP+i/0sonZ4V17KSMEu44duyBKOONTS+huHDeBLMHiwwCqzwhjOu7k/GksaqNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPIoAtCbsJ4e6lZC9vY4ul62Z/eJNrgSNkI0TlbSy0CAIhAMBXug8xY572A5Q9fm0R/q4jeURNw34YcaU04CZudyKe"}]}}},"readme":"# grunt-template-module #\n\n> Precompile templates to a file and/or expose the templates through a module.\n\nThis is an awful lot like the existing [grunt-contrib-jst](https://github.com/gruntjs/grunt-contrib-jst) grunt task. But it has a few\ndifferences. One is that it supports <code>underscore</code>, <code>lodash</code> and <code>ejs</code> template providers. The real\nkey feature is that it allows you to compile these templates into a module that exposes each compiled template from an <code>exports</code>\nproperty. What this means is that if you provide the following configuration:\n\n    template-module: {\n        myTemplates:{\n\t        files: {\n\t            \"tmp/module_jst.js\": [\"test/fixtures/template.html\"]\n\t        }\n\t        options: {\n\t            module: true\n\t        }\n\t    }\n    }\n\nYou would end up with an entry in <code>module_jst.js</code> that looks like:\n\n    exports[\"tmp/module_jst.js\"] = function(obj){...\n\nI know. You're wondering why do such a thing? Doesn't <code>contrib-jst</code> offer an AMD wrapper? Yes, it does, but it is a very noisy way\nto get at it on the server. As well, if you use [browserify](https://github.com/substack/node-browserify), this will play much better with\nthe compiled browserified (is that a word?) output.\n\nSo there you have it. Browserify and server happiness for underscore/lodash and EJS templates. And backward compatibility with <code>contrib-jst</code>.\n\nAnd one more thing: prettify uses beautify instead. Let's try that again. The prettify option in the original used some very simple code to pretty things up. Instead it\nnow uses [node-beautify](https://github.com/fshost/node-beautify).\n\n\n## Getting Started\nIf you haven't used [grunt][] before, be sure to check out the [Getting Started][] guide, as it explains how to create a [gruntfile][Getting Started] as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command:\n\n```shell\nnpm install grunt-template-module\n```\n\n[grunt]: http://gruntjs.com/\n[Getting Started]: https://github.com/gruntjs/grunt/blob/devel/docs/getting_started.md\n\n\n## template-module task\nRun this task with `grunt template-module` at the command line.\n\n_This task is a [multi task][] so any targets, files and options should be specified according to the [multi task][] documentation._\n[multi task]: https://github.com/gruntjs/grunt/wiki/Configuring-tasks\n\n### Usage\n\n```js\ntemplate-module: {\n  compile: {\n    options: {\n      module: true,\n      provider: 'lodash'\n    },\n    files: {\n      \"path/to/compiled/templates.js\": [\"path/to/source/**/*.html\"]\n    }\n  }\n}\n```\n\n### Options\n\n#### module\nType: 'Boolean'\nDefault: true\n\nWhen true, the module behavior described above will be delivered with love and chocolate.\n\n#### provider\nType 'String'\nDefault: underscore\n\nThe name of the template engine to use. Allowable values are <code>*underscore*</code> <code>*lodash*</code> and <code>*ejs*</code>\n\n\n#### useStrict\nType ```boolean```\nDefault: false\n\nEnable strict mode by adding ```'strict mode';``` to the output\n\n```javascript\noptions: {\n  useStrict: true\n}\n```\n\n#### prettify\nType: ```boolean```\nDefault: false\n\nWhen doing a quick once-over of your compiled template file, it's nice to see\nan easy-to-read format. This will accomplish\nthat.\n\n```javascript\noptions: {\n  prettify: true\n}\n```\n\n#### prettifyOptions\nType: ```object```\n\nWhen you set prettify to `true`, you can pass options to the [beautify module](https://github.com/fshost/node-beautify) in this object.\n\n```javascript\noptions: {\n  prettify: true,\n  prettifyOptions:{\n      indentSize: 4,\n      indentChar: '\\t',\n      maxPreserveNewlines: 1\n  }\n}\n```\n\n#### single\nType: ```boolean```\nDefault: false\n\nIf enabled and there is only one soruce file, then export the template as a single function. e.g. ```module.exports = function( .... );```\n\n```javascript\noptions: {\n  single: true\n}\n```\n\n\n#### namespace\nType: `String`\nDefault: 'JST'\n\nThe namespace in which the precompiled templates will be asssigned.  *Use dot notation (e.g. App.Templates) for nested namespaces.* *This is not used when module is set to true.*\n\n#### processName\nType: ```function```\nDefault: null\n\nThis option accepts a function which takes one argument (the template filepath) and returns a string which will be used as the key for the precompiled template object.  The example below stores all templates on the default JST namespace in capital letters.\n\n```js\noptions: {\n  processName: function(filename) {\n    return filename.toUpperCase();\n  }\n}\n```\n\n#### templateSettings\nType: ```Object```\nDefault: null\n\nThe settings passed to the template engine when compiling templates. The options are template engine specific.\n\n```js\ntemplate-module: {\n  compile: {\n    options: {\n      templateSettings: {\n        interpolate : /\\{\\{(.+?)\\}\\}/g\n      }\n    },\n    files: {\n      \"path/to/compiled/templates.js\": [\"path/to/source/**/*.html\"]\n    }\n  }\n}\n```\n\n#### lintExpr\nType: ```Object```\nDefault: null\n\nIf you want to add a comment for lint or hint declarations, you can use this setting to declare the directives.\n\n```js\ntemplate-module: {\n  compile: {\n    options: {\n     lintExpr : {\n        unused : false,\n        asi : true,\n        expr : true\n     },\n    },\n    files: {\n      \"path/to/compiled/templates.js\": [\"path/to/source/**/*.html\"]\n    }\n  }\n}\n```\n\nwhich would produce `/*jshint unused:false, asi:true, expr:true*/` and add it to the bottom of the file.\n\n#### requireProvider\nType: ```boolean```\nDefault: true\n\nWhen compiling as with `module: true`, by default we'll prepend `var _ = require('underscore');` to the output. This is fine if you're bundling your `provider` (underscore, lodash, or ejs) in your build.\n\nHowever, you might not want to bundle your `provider`, for example if you want to load lodash from a CDN. In that case, you'll want to set `requireProvider: false`\n\n#### amdWrapper\nType: ```boolean``` | ```string```\nDefault: false\n\nWith Require.js and a pre-compiled template.js you want the templates to be\nwrapped in a define. This will wrap the output in:\n\n``` javascript\ndefine(function() {\n  //Templates\n  return this[\"NAMESPACE\"];\n});\n```\n\nExample:\n``` javascript\noptions: {\n  amdWrapper: true\n}\n```\n\nIf you want a specific define, you can provide it as string:\n``` javascript\noptions: {\n  amdWrapper: 'define(\"templates\", [\"i18n\"], function(__) {'\n}\n```\nWill result in:\n``` javascript\ndefine(\"templates\", [\"i18n\"], function(__) {\n  //Templates\n  return this[\"NAMESPACE\"];\n});\n```\n\n* This is not used when module is set to true.*\n\n\n\n\n## Release History\n * 2012-12-24   v0.1.0  Initial release\n * 2012-12-25   v0.1.1  Fixed documentation and clarified names\n * 2014-06-12   v0.3.0  Updated dependencies\n","maintainers":[{"name":"terryweiss","email":"me@terryweiss.net"}],"time":{"modified":"2022-06-18T16:07:44.398Z","created":"2012-12-24T20:01:57.076Z","0.1.0":"2012-12-24T20:02:00.145Z","0.1.1":"2012-12-25T17:55:00.288Z","0.1.2":"2012-12-27T21:36:59.442Z","0.2.0":"2013-02-17T17:38:49.665Z","0.3.0":"2014-06-12T20:56:32.668Z","0.3.2":"2014-07-16T20:38:19.353Z","0.4.0":"2014-07-31T20:48:16.831Z","0.5.0":"2014-10-29T12:32:36.311Z","0.5.1":"2015-07-22T16:21:52.892Z"},"repository":{"type":"git","url":"git://github.com/terryweiss/grunt-template-module.git"},"homepage":"https://github.com/terryweiss/grunt-template-module","keywords":["gruntplugin","grunt","compile template","jst","ejs","lodash","underscore","templates"],"contributors":[{"name":"Terry Weiss","url":"http://terryweiss.net"},{"name":"Grunt Team","url":"http://gruntjs.com/"}],"bugs":{"url":"https://github.com/terryweiss/grunt-template-module/issues"},"readmeFilename":"README.md"}