{"_id":"liquor","_rev":"12-b057616d1277438fc34c37b0364e3f7d","name":"liquor","description":"Templates, minus the code.","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"liquor","description":"templates without the code","author":{"name":"Christopher Jeffrey"},"version":"0.0.1","main":"./lib/liquor.js","repository":{"type":"git","url":"git://github.com/chjj/liquor.git"},"keywords":["template"],"dependencies":{},"devDependencies":{},"_id":"liquor@0.0.1","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.4.7","_defaultsLoaded":true,"dist":{"shasum":"50437a794a9ca810a2b1ba21a2200f7d5d7a4937","tarball":"https://registry.npmjs.org/liquor/-/liquor-0.0.1.tgz","integrity":"sha512-NmK4QTwFzmkr162zCFJjffXS2lQDNH/OJiXStHpXGqSe8yMkkOo4ELVU9A6mixAfja31bmLUl9InjcdnnYPSCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeE68BqvIg71fXSOYH7yJXYW2DQ3+TH1vLFLuCwY6UDQIgaLJs1DGUqxhyUFdzhXlaEIQjLSOQdNiH+4BqWOf7jQU="}]},"scripts":{},"directories":{}},"0.0.2":{"name":"liquor","description":"templates without the code","author":{"name":"Christopher Jeffrey"},"version":"0.0.2","main":"./lib/liquor.js","repository":{"type":"git","url":"git://github.com/chjj/liquor.git"},"keywords":["template"],"_npmUser":{"name":"chjj","email":"chjjeffrey@gmail.com"},"_id":"liquor@0.0.2","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"c39e4d3afb32cd75ef45e6f873c559a836b10f5f","tarball":"https://registry.npmjs.org/liquor/-/liquor-0.0.2.tgz","integrity":"sha512-LMMcFaWhYRmQ0AWt89uyoyPxfIRsQwpsUUT2wibB2B3F3Dj5kHBOnCM57nDMbtU8FUushv5kxlga3gUIx4oYsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC6R5OhYiZPO2ccVmIFFMmYy6RWOj5D2jChaJUQHJv5fAiEAp4Ilw+kYkj1cJvnUWkx/FqB7zgzBKRFrSNntgUHjZgo="}]},"maintainers":[{"name":"chjj","email":"chjjeffrey@gmail.com"}],"directories":{}},"0.0.3":{"name":"liquor","description":"Templates, minus the code.","author":{"name":"Christopher Jeffrey"},"version":"0.0.3","main":"./lib/liquor.js","repository":{"type":"git","url":"git://github.com/chjj/liquor.git"},"homepage":"https://github.com/chjj/liquor","bugs":{"url":"https://github.com/chjj/liquor/issues"},"keywords":["template","html"],"tags":["template","html"],"_npmUser":{"name":"chjj","email":"chjjeffrey@gmail.com"},"_id":"liquor@0.0.3","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.10","_defaultsLoaded":true,"dist":{"shasum":"71ea41449715ab415289b8b591a5670fb1e91c73","tarball":"https://registry.npmjs.org/liquor/-/liquor-0.0.3.tgz","integrity":"sha512-Dg5fz2FPura3Dc3qys6vNXmMKN76nDiqG7RvNLp2wCMM6rKwMg30kQasZZJjOYi/qrkF31rcPwuSAqUaNq8PYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBzLPWbxmvCX/ReihVKEHsPpLi4bZ4Gu5ltQfyGGdiO1AiA9fGnNhnBNbm14uHx/EB3H+Nk7kCYr8z7IEFxOoj1mxA=="}]},"maintainers":[{"name":"chjj","email":"chjjeffrey@gmail.com"}],"directories":{}},"0.0.4":{"name":"liquor","description":"Templates, minus the code.","author":{"name":"Christopher Jeffrey"},"version":"0.0.4","main":"./lib/liquor.js","repository":{"type":"git","url":"git://github.com/chjj/liquor.git"},"homepage":"https://github.com/chjj/liquor","bugs":{"url":"https://github.com/chjj/liquor/issues"},"keywords":["template","html"],"tags":["template","html"],"_npmUser":{"name":"chjj","email":"chjjeffrey@gmail.com"},"_id":"liquor@0.0.4","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.4","_nodeVersion":"v0.6.12","_defaultsLoaded":true,"dist":{"shasum":"d17b726e163405b99fcd3e6f6d362b51478e3f4d","tarball":"https://registry.npmjs.org/liquor/-/liquor-0.0.4.tgz","integrity":"sha512-KJSBLFsoYm1V1UsBYDiKe0n46uo230d13QT0FSMMcjHNWRSRZBZARiZ+YFrOfiCpfNa5o8D/2bst9AwNIEnB0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGdB8FxGFN4CWX+nz5QpTSqnQnO7e1Cl30j4rkV26MQ2AiEAmWfDaHEtJOJTb6lH0Eq9OTHzZqu9/R6KAPFFNGaKXT0="}]},"maintainers":[{"name":"chjj","email":"chjjeffrey@gmail.com"}],"directories":{}},"0.0.5":{"name":"liquor","description":"Templates, minus the code.","author":{"name":"Christopher Jeffrey"},"version":"0.0.5","main":"./lib/liquor.js","repository":{"type":"git","url":"git://github.com/chjj/liquor.git"},"homepage":"https://github.com/chjj/liquor","bugs":{"url":"https://github.com/chjj/liquor/issues"},"keywords":["template","html"],"tags":["template","html"],"_id":"liquor@0.0.5","dist":{"shasum":"40a6427971ce7016991ca43210bec1896611d4b2","tarball":"https://registry.npmjs.org/liquor/-/liquor-0.0.5.tgz","integrity":"sha512-25l2xIk3LXTvmRFJ1jSR51F32pByWxFO7yDXhNDTr62KmkGrUGETDqsH/IaOlknYu7jqqbxeZ5a9j4SbsaKLeQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6HXNEu7SDBvj8vZAUVfmWUEV4iuzkq+5NKpH3bD66MwIgKXyQmuZzd8UZf2vyrmlPR3+UXESCXEk3YasgncckPU4="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"chjj","email":"chjjeffrey@gmail.com"},"maintainers":[{"name":"chjj","email":"chjjeffrey@gmail.com"}]}},"maintainers":[{"name":"chjj","email":"chjjeffrey@gmail.com"}],"time":{"modified":"2022-06-19T12:43:10.675Z","created":"2011-07-20T06:50:19.996Z","0.0.1":"2011-07-20T06:50:20.495Z","0.0.2":"2012-01-05T10:00:48.386Z","0.0.3":"2012-03-07T08:53:10.155Z","0.0.4":"2012-03-11T08:40:30.906Z","0.0.5":"2014-02-02T06:22:41.625Z"},"author":{"name":"Christopher Jeffrey"},"repository":{"type":"git","url":"git://github.com/chjj/liquor.git"},"readme":"# Liquor\n\nLiquor is a templating engine for node. It's very lightweight. It's essentially\nembedded javascript with some shorthand significant whitespace notation\navailable. This is to discourage use of raw code and make templates look nicer.\n\n## Usage\n\nBackticks are used for evaluation, while `#{}` is used for interpolation.\n\n``` html\n?:data\n  <table>\n    <tr>\n      @:col\n        <td>#{this}</td>\n    </tr>\n    @:data\n      <tr>\n        <td>#{this.color}</td>\n        <td>#{this.animal}</td>\n      </tr>\n  </table>\n\n!:data\n  <div>\n    ?:error\n      <p>Sorry, there was a problem: #{error}.</p>\n      <p>Please, try again!</p>\n    !:error\n      <p>Sorry, no error message.</p>\n  </div>\n```\n\nIs essentially shorthand for:\n\n``` html\n`if (typeof data !== 'undefined' && data) {`\n  <table>\n    <tr>\n      `each(col, function() {`\n        <td>#{this}</td>\n      `})`\n    </tr>\n    `each(data, function() {`\n      <tr>\n        <td>#{this.color}</td>\n        <td>#{this.animal}</td>\n      </tr>\n    `})`\n  </table>\n`} else {`\n  <div>\n    `if (typeof error !== 'undefined' && error) {`\n      <p>Sorry, there was a problem: #{error}.</p>\n      <p>Please, try again!</p>\n    `} else {`\n      <p>Sorry, no error message.</p>\n    `}`\n  </div>\n`}`\n```\n\n``` html\n`/* liquor also exposes an \"each\" helper function */`\n`/* it is the same one used internally for @ statements */`\n`if (messages)\n  each(messages, function(message, key) {`\n    <p>#{key}: #{message.content}</p>\n  `})`\n```\n\nIf you're worried about the notorious \"undefined\" problem with variables\nexpressed in raw evaluation of JS, you can access them as properties on a\nvariable called `$`, which exists within the context of a template, and holds\nall of the locals and helpers:\n\ne.g.\n\n``` html\n`if ($.messages) {` <p>#{JSON.stringify(messages)}</p> `}`\n```\n\n## License\n(c) Copyright 2011-2012, Christopher Jeffrey. See LICENSE for more info.\n","readmeFilename":"README.md"}