{"_id":"handlebars-jst","_rev":"11-b5de95681f6671184e0abf951cd7e6aa","name":"handlebars-jst","description":"Pre-compiled jQuery Templates","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"author":{"name":"wookiehangover","email":"sam@quickleft.com"},"name":"handlebars-jst","description":"Pre-compiled jQuery Templates","version":"0.0.1","repository":{"type":"git","url":"github.com:wookiehangover/handlebars-jst.git"},"engines":{"node":">=0.4.7"},"dependencies":{"handlebars":"1.0.2beta"},"devDependencies":{"jasmine-node":"~1.0.6"},"homepage":"https://github.com/wookiehangover/handlebars-jst","main":"./lib/index","scripts":{"test":"jasmine-node ./test"},"bin":{"tmpl":"./bin/tmpl.js"},"_npmUser":{"name":"wookiehangover","email":"sam@quickleft.com"},"_id":"handlebars-jst@0.0.1","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.0","_defaultsLoaded":true,"dist":{"shasum":"144a78048777736179ca4bfb84d97c0bdfef3b7d","tarball":"https://registry.npmjs.org/handlebars-jst/-/handlebars-jst-0.0.1.tgz","integrity":"sha512-CZsTtzXxt+JhH9M6CSgaZ1nOqgFjjz7I0nXjufDSSD95RZr1hYFfV4NuVsghRplbuR+4R2z19ZOhGrid66I+aQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAzOHup5jAQOBDVOmQVENlHxvJqSXQ1FdU78Frs9hztwIhAJGdNkVLmVnKXLs0p73I1tRJsFy0pWLQ6meEXdG3O91T"}]},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}]},"0.0.2":{"author":{"name":"wookiehangover","email":"sam@quickleft.com"},"name":"handlebars-jst","description":"Pre-compiled jQuery Templates","version":"0.0.2","repository":{"type":"git","url":"github.com:wookiehangover/handlebars-jst.git"},"engines":{"node":"~0.6.0"},"dependencies":{"handlebars":"1.0.2beta"},"devDependencies":{"jasmine-node":"~1.0.6"},"homepage":"https://github.com/wookiehangover/handlebars-jst","main":"./lib/index","scripts":{"test":"jasmine-node ./test"},"bin":{"tmpl":"./bin/tmpl.js"},"_npmUser":{"name":"wookiehangover","email":"sam@quickleft.com"},"_id":"handlebars-jst@0.0.2","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.0","_defaultsLoaded":true,"dist":{"shasum":"9b85aa19983d7aec2011f3155757545394c37ab9","tarball":"https://registry.npmjs.org/handlebars-jst/-/handlebars-jst-0.0.2.tgz","integrity":"sha512-Gfz4pwqnQ4SeHobNyN0EZJ/dUgdmoXs9i+u6/ZSHxcTVBXOWKd/RHz3ivFvMiSKI7u2U2U9LI6DH6BbhzSdamg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFu43Db+UQhaop959T251s3LEo/wx/g6j+msiiP7OyEQIgYUKS3KIxWEyUpFqQ/PzddKgqxFoDZlkyNmbUJR7PvYs="}]},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}]},"0.0.3":{"author":{"name":"wookiehangover","email":"sam@quickleft.com"},"name":"handlebars-jst","description":"Pre-compiled jQuery Templates","version":"0.0.3","repository":{"type":"git","url":"github.com:wookiehangover/handlebars-jst.git"},"engines":{"node":"~0.6.0"},"dependencies":{"handlebars":"1.0.2beta"},"devDependencies":{"jasmine-node":"~1.0.6"},"homepage":"https://github.com/wookiehangover/handlebars-jst","main":"./lib/index","scripts":{"test":"jasmine-node ./test"},"bin":{"tmpl":"./bin/tmpl.js"},"_npmUser":{"name":"wookiehangover","email":"sam@quickleft.com"},"_id":"handlebars-jst@0.0.3","_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.1","_defaultsLoaded":true,"dist":{"shasum":"d8087e967f75601a03c4379d4ccb0961d259e1b8","tarball":"https://registry.npmjs.org/handlebars-jst/-/handlebars-jst-0.0.3.tgz","integrity":"sha512-hdVv0d4XONZJzjMpen25kqPM0m7fLUaj/d/ZQf/ZW+9cRntU6bEXGIu0xtCzD7nThiXhKyOGUXsLBtucmaBuQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAb0Iu04xVz3Zge5Qgu4IYH+/XXhQwsdpfiHnsWd/uBxAiBEI2goV18V9Jfm1q4RLjHhBiGycPV6XkVDCy1jiNnxRg=="}]},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}]},"0.0.4":{"author":{"name":"wookiehangover","email":"sam@quickleft.com"},"name":"handlebars-jst","description":"Pre-compiled jQuery Templates","version":"0.0.4","repository":{"type":"git","url":"github.com:wookiehangover/handlebars-jst.git"},"engines":{"node":"~0.6.0"},"dependencies":{"handlebars":"1.0.2beta"},"devDependencies":{"jasmine-node":"~1.0.6"},"homepage":"https://github.com/wookiehangover/handlebars-jst","main":"./lib/index","scripts":{"test":"jasmine-node ./test"},"bin":{"tmpl":"./bin/tmpl.js"},"_npmUser":{"name":"wookiehangover","email":"sam@quickleft.com"},"_id":"handlebars-jst@0.0.4","_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"4c47c9b81dd06f19df0768e8a0e2e3d4e54096e2","tarball":"https://registry.npmjs.org/handlebars-jst/-/handlebars-jst-0.0.4.tgz","integrity":"sha512-ttR8fJ/MaT6s0yM5t4RQvgao0DdzUYyboLSB2WCAdxjjAybv2b2zLFuzrD4eTuglCFgPulb+HPRr9R+HadKtiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuREUfVXZwo3TinAqhs2F3O7DCFncS9oCiEDaGDJzTLAIhAPUyKVZpjAik7rrDO0qIspVVSHY4eCPaMzIO7zQbe3HW"}]},"maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}]}},"readme":"# JST for Handlebars\n\nhandlebars-jst: Pre-compiled Handlebars with Node.js\n\n## Install with NPM\nThe best / easiest way to start using handlebars-jst is to install it\nwith npm, which looks something like this: `npm install handlebars-jst`\n\nBe sure to use the `--global` option if you'd like to use the command\nline tool.\n\n## Basic usage\n\nIncant handlebars-jst into your application with a require statement,\nand jquery-tmpl-just will expose 2 functions: `build` and `process`\n\n    var tmpl = require('handlebars-jst');\n\n    // Builds a template string\n    tmpl.build( 'path/to/my/templates', function( output ){\n\n      // Creates a file called templates.js\n      tmpl.process( output, 'path/to/output/dir' );\n    });\n\nBuild creates a string of executable javascript from a directory of\ntemplates. It accepts the location of your templates and a callback\nfunction.\n\nProcess creates a file called `templates.js` in the specified target\ndirectory. It accepts a template string and a the target location.\n\n## CLI usage\n\nhandlebars-jst also comes with a command line tool, which you can use\nlike this:\n\n    $ tmpl path/to/templates path/to/save\n\nThis creates the file `templates.js` to the target directory. If no\narguments are passed, the current path will be used instead.\n\n## Using as a Cakefile\n\nSince this is really meant to be used as a build tool, a Cakefile is\nincluded as well, but keep in mind that _coffee-script must be included\nas a dependency in order to use the Cakefile_.\n\nModify the Cakefile's `targetDir` and `templateDir` variables to point\nto you desired build location and the location of your templates,\nrespectively.\n\nRun `cake build` or `cake watch` from the root of your project to\ngenerate the compiled templates. `cake watch` will listen for changes in\nyour templates directory and run the build process on demand.\n\n## JST Output\n\nTo start using the compiled templates, just include `templates.js`. Keep\nin mind that these are just your templates, so you'll also need jQuery\nand jQuery-tmpl in there too.\n\n`templates.js` creates a global object called `window.JST`.\n\nThe `JST` object includes a `templates` object containing all of your\nprecompiled templates:\n\n    JST = {\n      <template_name>,\n      <template_name_2>,\n      ...\n    }\n\nThe helper methods are meant to make using templates as easy as\npossible, so they are functions that take JSON data to be templated as\nthe only argument.\n\nThe functions themselves look like this:\n\n      JST.<file_name> = function( data ){\n        return $.tmpl( JST.template.<file_name>, data );\n      }\n\nAnd it's final usage would look something like this:\n\n      var data = { title: \"foobar\" },\n          compiled_template = window.JST.sample_template( my_data );\n\n      $('body').html( compiled_template );\n\n\n## Multiple Named Templates from a single file\n\nAdd as many sub-templates as you want to a single JST file by writing a\nc-style comment with the sub-template name.\n\n    multiple_templates.JST\n    ---\n    <hi>Nothing to see here</h1>\n\n    /* foo */\n    <h2>{foo}</h2>\n    <p>Check out this other awesome template<p>\n\nThis file will product 2 templates:\n\n    JST = {\n      multiple_templates,\n      multiple_templates_foo\n    }\n\n\n## Contributing\n\nThis is a need-based project, so I only wrote it to account for my\nneeds as of right now.\n\nIf you've got any suggestestions, opinions, optimizations or fixes,\nplease fork and pull request to contribute.\n\nEverything original is MIT, everything else honors whatever license it\nwas written under.\n","maintainers":[{"name":"wookiehangover","email":"sam@quickleft.com"}],"time":{"modified":"2022-06-18T18:53:53.209Z","created":"2011-11-07T02:16:13.499Z","0.0.1":"2011-11-07T02:16:14.527Z","0.0.2":"2011-11-07T22:03:53.659Z","0.0.3":"2011-11-14T04:24:21.179Z","0.0.4":"2012-02-09T17:09:14.147Z"},"author":{"name":"wookiehangover","email":"sam@quickleft.com"},"repository":{"type":"git","url":"github.com:wookiehangover/handlebars-jst.git"}}