{"_id":"grunt-dust-require","_rev":"27-43cbe18de499c6033c2510789c012478","name":"grunt-dust-require","description":"Grunt.js plugin to compile dustjs templates.","dist-tags":{"latest":"0.1.5"},"versions":{"0.1.0":{"name":"grunt-dust-require","description":"Grunt.js plugin to compile dustjs templates.","version":"0.1.0","homepage":"https://github.com/salazarm/grunt-dust-require","author":{"name":"Marco Salazar","email":"marco@eagerpanda.com","url":"http://github.com/salazarm"},"repository":{"type":"git","url":"git@github.com:salazarm/grunt-dust-require.git"},"licenses":{"type":"MIT","url":""},"bin":{"grunt-dust-require":"bin/grunt-dust-require"},"engines":{"node":"*"},"dependencies":{"grunt":"~0.4.1","dustjs-linkedin":"2.2.0","coffee-script":"~1.6.3","semver":"2.2.1","js-beautify":"~1.4.2"},"devDependencies":{"wrench":"~1.5.4","string":"~1.3.0","should":"~1.2.2","grunt-cli":"~0.1.7","esprima":"~1.0.4"},"keywords":["gruntplugin","require"],"bugs":{"url":"https://github.com/salazarm/grunt-dust-require/issues"},"_id":"grunt-dust-require@0.1.0","dist":{"shasum":"a3feae90e74677ad650280a385fe4aa901d56d91","tarball":"https://registry.npmjs.org/grunt-dust-require/-/grunt-dust-require-0.1.0.tgz","integrity":"sha512-ZGZj8ceUPHFf2t60m6GEPfLR4mu5U7IPfQo06tEEzfUBvj30bm72Ea1dan9ZBhMs7ZVF77IyIHhiI6NxWaIp9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEH/8OY147UwA3Y5Dy+IfEzU0F7lbJPGm0U5OWbytcrQIhAP6JvEDnrWq/jYi7YkhNivDrvaW5d2DNta9Qd1NjI4W7"}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"salazarm","email":"salazarm@mit.edu"},"maintainers":[{"name":"salazarm","email":"salazarm@mit.edu"}],"directories":{}},"0.1.1":{"name":"grunt-dust-require","description":"Grunt.js plugin to compile dustjs templates.","version":"0.1.1","homepage":"https://github.com/salazarm/grunt-dust-require","author":{"name":"Marco Salazar","email":"marco@eagerpanda.com","url":"http://github.com/salazarm"},"repository":{"type":"git","url":"git@github.com:salazarm/grunt-dust-require.git"},"licenses":{"type":"MIT","url":""},"bin":{"grunt-dust-require":"bin/grunt-dust-require"},"engines":{"node":"*"},"dependencies":{"grunt":"~0.4.1","dustjs-linkedin":"2.2.0","coffee-script":"~1.6.3","semver":"2.2.1","js-beautify":"~1.4.2"},"devDependencies":{"wrench":"~1.5.4","string":"~1.3.0","should":"~1.2.2","grunt-cli":"~0.1.7","esprima":"~1.0.4"},"keywords":["gruntplugin","require"],"bugs":{"url":"https://github.com/salazarm/grunt-dust-require/issues"},"_id":"grunt-dust-require@0.1.1","dist":{"shasum":"5edad8caf3e3bf31d9d56619f9699095ca52c137","tarball":"https://registry.npmjs.org/grunt-dust-require/-/grunt-dust-require-0.1.1.tgz","integrity":"sha512-4MCtcCOx7JVAobJBPlk+EeVnINd/Op0ieQSuvgmbEUWTjGCu0stAVwYo4KS6kjlSWjZH2zY4DkyZ4vZWDJFIaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsEqbXbrOAxLHJHdmgaxR4D37PYqrHBvyjeXwnQfZwfwIhAOSFOXkMMmpdVXD43oU9PfK2lgc0mCuHgFOsdhRAMpKN"}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"salazarm","email":"salazarm@mit.edu"},"maintainers":[{"name":"salazarm","email":"salazarm@mit.edu"}],"directories":{}},"0.1.2":{"name":"grunt-dust-require","description":"Grunt.js plugin to compile dustjs templates.","version":"0.1.2","homepage":"https://github.com/salazarm/grunt-dust-require","author":{"name":"Marco Salazar","email":"marco@eagerpanda.com","url":"http://github.com/salazarm"},"repository":{"type":"git","url":"git@github.com:salazarm/grunt-dust-require.git"},"licenses":{"type":"MIT","url":""},"bin":{"grunt-dust-require":"bin/grunt-dust-require"},"engines":{"node":"*"},"dependencies":{"grunt":"~0.4.1","dustjs-linkedin":"2.2.0","coffee-script":"~1.6.3","semver":"2.2.1","js-beautify":"~1.4.2"},"devDependencies":{"wrench":"~1.5.4","string":"~1.3.0","should":"~1.2.2","grunt-cli":"~0.1.7","esprima":"~1.0.4"},"keywords":["gruntplugin","require"],"bugs":{"url":"https://github.com/salazarm/grunt-dust-require/issues"},"_id":"grunt-dust-require@0.1.2","dist":{"shasum":"4d1154856a95f92bf36231f962cc6244570400e6","tarball":"https://registry.npmjs.org/grunt-dust-require/-/grunt-dust-require-0.1.2.tgz","integrity":"sha512-4b0IlaTEfJR9m6enxyEHqbmAnMyDYhFlKpcKsU5XAF5996easXvYLxohKeMRcTWyJzjx5cgIW1V80Fjfyqc8EQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjteuom9XgvBt3uFc1sv50dMiSA7VUnwuvekDQvDJJmwIgFuSNIoRYbxOZhqDfdm3khEZwp8uanHaSCC7OMoLrpuc="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"salazarm","email":"salazarm@mit.edu"},"maintainers":[{"name":"salazarm","email":"salazarm@mit.edu"}],"directories":{}},"0.1.5":{"name":"grunt-dust-require","description":"Grunt.js plugin to compile dustjs templates.","version":"0.1.5","homepage":"https://github.com/salazarm/grunt-dust-require","author":{"name":"Marco Salazar","email":"marco@eagerpanda.com","url":"http://github.com/salazarm"},"repository":{"type":"git","url":"git@github.com:salazarm/grunt-dust-require.git"},"licenses":{"type":"MIT","url":""},"bin":{"grunt-dust-require":"bin/grunt-dust-require"},"engines":{"node":"*"},"dependencies":{"grunt":"~0.4.1","dustjs-linkedin":"2.2.0","coffee-script":"~1.6.3","semver":"2.2.1","js-beautify":"~1.4.2"},"devDependencies":{"wrench":"~1.5.4","string":"~1.3.0","should":"~1.2.2","grunt-cli":"~0.1.7","esprima":"~1.0.4"},"keywords":["gruntplugin","require"],"bugs":{"url":"https://github.com/salazarm/grunt-dust-require/issues"},"_id":"grunt-dust-require@0.1.5","dist":{"shasum":"1ee46e0324e802c76d3653ea4b2b9cbe6dc9cfa4","tarball":"https://registry.npmjs.org/grunt-dust-require/-/grunt-dust-require-0.1.5.tgz","integrity":"sha512-fnlWrW42xW642Nvo1RdY8BGkq73MIKSxUB0Li6lYAHxH1Z4ehYJT6m9fYEaYdKzodQnEiA/zdVlEgQjk4xybJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID85CSZ9znLQ+dcqNmfePFvSE737P+QEZG9OIoPdmzQOAiEAuGUHQozkse8u0YaveW4bOr9IAQ9W4Ur+RsUcqlCCzIY="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"salazarm","email":"salazarm@mit.edu"},"maintainers":[{"name":"salazarm","email":"salazarm@mit.edu"}],"directories":{}}},"readme":"Grunt.js plugin to compile dustjs templates and wrap them in requirejs modules with all partial templates used as dependencies.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.0`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-dust-require --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-dust-require');\n```\n\n## Dust task\n_Run this task with the `grunt grunt-dust-require` command._\n\nTask targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.\n\n### File Options\n\n#### amdPrefix\nType: `string`\nDefault: null\n\nSets a prefix for the requirejs module name. `amdPrefix/path/to/template`.\n\n### Options\n\n#### relative\nType: `boolean`\nDefault: false\n\nMake templates names relative from cwd (working only if used [Grunt Dynamic Mappings](http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically)).\n\n#### basePath\nType: `string`\nDefault: false\n\nExclude this path from templates names.\n\n#### useBaseName\nType: `boolean`\nDefault: false\n\nIf 'true' template names will be the same as the basename of the file, sans prepended paths and file extensions. When coupled with globbing pattern '[root_folder]/**/*' all files matched will use their base names regardless of where the file is located in the directory tree rooted at root_folder. Note: One caveat - filenames must be unique! Otherwise name collisions will occur.\n\n\n\n### Usage Examples\n\n```coffee\ngrunt.initConfig\n  \"dust-require\":\n    compile:\n      files: [\n          {\n            expand: true\n            outputStyle: 'compressed'\n            cwd: \"exampleFolder\"\n            src: ['**/*.dust']\n            dest: \"compiledFolder\"\n            ext: '.js'\n            amdPrefix: \"templates/\"\n            nameTemplate: false\n          }\n        ]\n```\n\nexample.dust\n```dust\n<div class='example'>\n  {> \"path/to/partial/template\" someVar=\"{someOtherVar}\" /}\n  {> \"path/to/another/partial\" /}\n  {> \"another/path/omg\" anotherVar=\"someValue\" /}\n</div>\n```\n\nexample.js\n```js\ndefine(\"templates/example\", [\"templates/path/to/partial/template\", \"templates/path/to/another/partial\", \"templates/another/path/omg\"], function() {\n  // example.dust\n  (function() {\n    dust.register(\"example\", body_0);\n\n    function body_0(chk, ctx) {\n      return chk.write(\"<div class='example'>\").partial(\"path/to/partial/template\", ctx, {\n        \"someVar\": body_1\n      }).partial(\"path/to/another/partial\", ctx, null).partial(\"another/path/omg\", ctx, {\n        \"anotherVar\": \"someValue\"\n      }).write(\"</div>\");\n    }\n\n    function body_1(chk, ctx) {\n      return chk.reference(ctx._get(false, [\"someOtherVar\"]), ctx, \"h\");\n    }\n    return body_0;\n  })();\n  return\n});\n```\n\n\n\n\nFor more examples on how to use the `expand` API to manipulate the default dynamic path construction in the `glob_to_multiple` examples, see \"Building the files object dynamically\" in the grunt wiki entry [Configuring Tasks](http://gruntjs.com/configuring-tasks).\n\n## Release History\n* v0.1.0\n  - First release\n\n## License\nCopyright (c) 2013 Marco Salazar\nLicensed under the MIT license.\n\n\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/salazarm/grunt-dust-require/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","maintainers":[{"name":"salazarm","email":"salazarm@mit.edu"}],"time":{"modified":"2022-06-18T14:54:19.529Z","created":"2014-01-26T11:06:07.207Z","0.1.0":"2014-01-26T11:06:07.822Z","0.1.1":"2014-01-26T11:08:24.435Z","0.1.2":"2014-01-26T11:09:22.446Z","0.1.3":"2014-01-26T11:10:24.069Z","0.1.5":"2014-01-26T11:33:58.736Z","0.1.6":"2014-01-26T11:37:26.534Z"},"readmeFilename":"README.md","author":{"name":"Marco Salazar","email":"marco@eagerpanda.com","url":"http://github.com/salazarm"},"repository":{"type":"git","url":"git@github.com:salazarm/grunt-dust-require.git"}}