{"_id":"hogan-express","_rev":"64-65e62248448f1fc8c1657fb468c9536d","name":"hogan-express","description":"Mustache template engine for express 3.x. Support partials and layout","dist-tags":{"latest":"0.5.2"},"versions":{"0.1.0":{"name":"hogan-express","version":"0.1.0","description":"Mustache template engine for express 3.x. Support partials and layout","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:vol4ok/hogan-express.git"},"keywords":["mustache","hogan","partials","layout","template","engine"],"author":{"name":"vol4ok"},"license":"MIT","dependencies":{"hogan.js":">=2.0.0"},"_id":"hogan-express@0.1.0","dist":{"shasum":"981610dd8bd75cba635bbe9618009d34489bda3d","tarball":"https://registry.npmjs.org/hogan-express/-/hogan-express-0.1.0.tgz","integrity":"sha512-sHi0NwEQW9QZiIs+jdywU60e0OQmdavbRlrX0i7gFEmdVuKPTkniiR1c1iOcMtY7yf4dE2pNYthZAtvp0DQ9vA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHDbNN8QDTKqtYPaul+SKfXstCeewU0MWv56tt8W/tzmAiAjRfgBdPur4aW13rI1F6o7ifqHoRpHN3uMNV1AC9WKUw=="}]},"maintainers":[{"name":"vol4ok","email":"admin@vol4ok.net"}],"directories":{}},"0.2.0":{"name":"hogan-express","version":"0.2.0","description":"Mustache template engine for express 3.x. Support partials and layout","main":"hogan-express.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:vol4ok/hogan-express.git"},"keywords":["mustache","hogan","partials","layout","template","engine"],"author":{"name":"vol4ok"},"license":"MIT","dependencies":{"hogan.js":">=2.0.0"},"devDependencies":{"coffee-script":"1.x.x","colors":"0.6.x"},"_id":"hogan-express@0.2.0","dist":{"shasum":"ffe731e8b169d21ad36bfd4a4236edef84c99616","tarball":"https://registry.npmjs.org/hogan-express/-/hogan-express-0.2.0.tgz","integrity":"sha512-vqAR/FfTEpeZn8KN7E4cs3EDESpD/nsJl6qgfES2i9l5/mg236lV3YBlO2WyhduhggOOOaVPgY3GQg1O767Nnw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFA5hJ9uNHAsOlQBZtjmt+aOGzaHEkefia8yXsGwWBnAiARlE69Wcc7GM10NsshJ6QsPCrOrVjnqhP4DBdphh76nw=="}]},"maintainers":[{"name":"vol4ok","email":"admin@vol4ok.net"}],"directories":{}},"0.2.1":{"name":"hogan-express","version":"0.2.1","description":"Mustache template engine for express 3.x. Support partials and layout","main":"hogan-express.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:vol4ok/hogan-express.git"},"keywords":["mustache","hogan","partials","layout","template","engine"],"author":{"name":"vol4ok"},"license":"MIT","dependencies":{"hogan.js":">=2.0.0"},"devDependencies":{"coffee-script":"1.x.x","colors":"0.6.x"},"_id":"hogan-express@0.2.1","dist":{"shasum":"c153edbdede8ba1ec4f7da456dfca6781c9d2f45","tarball":"https://registry.npmjs.org/hogan-express/-/hogan-express-0.2.1.tgz","integrity":"sha512-cX1OIvIupyWGk7wEDDLEPr/kU+dQp/LzR1FzM0sCdnmhLqV3pR9rTewPiqogl0yaevRueZSxkT2IODlRt4SpyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFx38ler5R+I5LW051/z4BHzf/k3+8rVElkUPkVqP/awIgV8zOh00AiRmO2oMByr0ELN4WGkZ5CMBl3voMRP4Bd54="}]},"maintainers":[{"name":"vol4ok","email":"admin@vol4ok.net"}],"directories":{}},"0.2.2":{"name":"hogan-express","version":"0.2.2","description":"Mustache template engine for express 3.x. Support partials and layout","main":"hogan-express.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:vol4ok/hogan-express.git"},"keywords":["mustache","hogan","partials","layout","template","engine"],"author":{"name":"vol4ok"},"license":"MIT","dependencies":{"hogan.js":">=2.0.0"},"devDependencies":{"coffee-script":"1.x.x","colors":"0.6.x"},"_id":"hogan-express@0.2.2","dist":{"shasum":"8deefe569613879bc715cc977cf152b4a7e5063c","tarball":"https://registry.npmjs.org/hogan-express/-/hogan-express-0.2.2.tgz","integrity":"sha512-Nc5klXhsHAWuUG9pfXKnjRRY9OoOX66qyohhCeHI2pnH6O99G9UZa22UkcNuMySNkFzN7FwPLGLdu47P0uEU+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFbyBaR86njgG2wOvzFxegMArcE7QFiz5y/ck5xcH/rwIhANAulHGyyZr04pgHOpFZoPBSQxczTBXLhzzCe7JX06Kw"}]},"maintainers":[{"name":"vol4ok","email":"admin@vol4ok.net"}],"directories":{}},"0.3.0":{"name":"hogan-express","version":"0.3.0","description":"Mustache template engine for express 3.x. Support partials and layout","main":"hogan-express.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:vol4ok/hogan-express.git"},"keywords":["mustache","hogan","partials","layout","template","engine"],"author":{"name":"vol4ok"},"license":"MIT","dependencies":{"hogan.js":">=2.0.0"},"devDependencies":{"coffee-script":"1.x.x","colors":"0.6.x"},"_id":"hogan-express@0.3.0","dist":{"shasum":"d07ea82b1ede556e1ac30a2434eaee368cd84d04","tarball":"https://registry.npmjs.org/hogan-express/-/hogan-express-0.3.0.tgz","integrity":"sha512-KEse5rBArV4Wm4AsbQkfa7JmmzJ40qLfnZBwBmSK4jDaTUni5VrvSMFz6yTB185z7WoPv9CWvf78oDlAr/OxpA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID3kFa2Ybkw9/tidbKKDWhOCoJmcZWQnmOsaEN9NtjwBAiEA4no5gIkluIax9TL7Jq/sgLJP67aeJkzgwPvZ/xgAGC0="}]},"maintainers":[{"name":"vol4ok","email":"admin@vol4ok.net"}],"directories":{}},"0.3.1":{"name":"hogan-express","version":"0.3.1","description":"Mustache template engine for express 3.x. Support partials and layout","main":"hogan-express.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:vol4ok/hogan-express.git"},"keywords":["mustache","hogan","partials","layout","template","engine"],"author":{"name":"vol4ok"},"license":"MIT","dependencies":{"hogan.js":">=2.0.0"},"devDependencies":{"coffee-script":"1.x.x","colors":"0.6.x"},"_id":"hogan-express@0.3.1","dist":{"shasum":"74589e60eb64796450e5ecc70d0c4149ab8e0d3d","tarball":"https://registry.npmjs.org/hogan-express/-/hogan-express-0.3.1.tgz","integrity":"sha512-3Uxh44lbyA+wR9hhhT8B25vIQy0ebJ5zRQclMHjV3j+BNCoV7djFiTWKBNIMQrE8ZBBDWxI8QisGQn5m+sDJvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrqupzsdyKW9gCgoqBY4N097vhRrEC6it+FYpiz2EregIgAufvuu2HZk3G2KkRgsbh2ZfOnCFW11LBkm0+nHRuEME="}]},"maintainers":[{"name":"vol4ok","email":"admin@vol4ok.net"}],"directories":{}},"0.3.2":{"name":"hogan-express","version":"0.3.2","description":"Mustache template engine for express 3.x. Support partials and layout","main":"hogan-express.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:vol4ok/hogan-express.git"},"keywords":["mustache","hogan","partials","layout","template","engine"],"author":{"name":"vol4ok"},"license":"MIT","dependencies":{"hogan.js":">=2.0.0"},"devDependencies":{"coffee-script":"1.x.x","colors":"0.6.x"},"_id":"hogan-express@0.3.2","dist":{"shasum":"d4894d5f17af29147642bf2379d9d20767aaf446","tarball":"https://registry.npmjs.org/hogan-express/-/hogan-express-0.3.2.tgz","integrity":"sha512-8Qge08NqElrTOj8NIoXt6BIEMKfMeMgqANceQ0qr6Joymjh0jOK6I+tuhwxxSn+0u/YLc1Mf4RraLd1RM80F9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDP4uwzR55RSC0OpqbmAJYr8AGvSdZKnKBd6YeL6t+lQQIhAK1D17QHJA6Ox9mEkYSXXLxDVztvBnu+rQU8UjePRohw"}]},"_npmVersion":"1.1.59","_npmUser":{"name":"vol4ok","email":"admin@vol4ok.net"},"maintainers":[{"name":"vol4ok","email":"admin@vol4ok.net"}],"directories":{}},"0.3.3":{"name":"hogan-express","version":"0.3.3","description":"Mustache template engine for express 3.x. Support partials and layout","main":"hogan-express.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:vol4ok/hogan-express.git"},"keywords":["mustache","hogan","partials","layout","template","engine"],"author":{"name":"vol4ok"},"license":"MIT","dependencies":{"hogan.js":">=2.0.0"},"devDependencies":{"coffee-script":"1.x.x","colors":"0.6.x"},"_id":"hogan-express@0.3.3","dist":{"shasum":"a8da0417df72f488967e97d9f2b79752c0cad9f9","tarball":"https://registry.npmjs.org/hogan-express/-/hogan-express-0.3.3.tgz","integrity":"sha512-73ZiSaVSWmPeD55WeNBEwInESLMflaDq87F3e5k7WczgBJ7OVURn8hCP8taaUWsS2SV4CcmYzPQtU9HVuaH25Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGWOFVao5TZ0HEi4YLQqRE2+ZflB4osrB/bA5VE3Xfj8AiEA1bSxrqJKGhheK2H50oEM09Tp5LtHGUnfqnsCfmSN6zs="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"vol4ok","email":"admin@vol4ok.net"},"maintainers":[{"name":"vol4ok","email":"admin@vol4ok.net"}],"directories":{}},"0.4.0":{"name":"hogan-express","version":"0.4.0","description":"Mustache template engine for express 3.x. Support partials and layout","main":"hogan-express.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:vol4ok/hogan-express.git"},"keywords":["mustache","hogan","partials","layout","template","engine"],"author":{"name":"Andrew Volkov","email":"hello@vol4ok.net"},"license":"MIT","dependencies":{"hogan.js":">=2.0.0"},"devDependencies":{"coffee-script":"1.x.x","colors":"0.6.x"},"bugs":{"url":"https://github.com/vol4ok/hogan-express/issues"},"_id":"hogan-express@0.4.0","dist":{"shasum":"509848be66ff6008b7dfa02b0e5fb9f6930d7e25","tarball":"https://registry.npmjs.org/hogan-express/-/hogan-express-0.4.0.tgz","integrity":"sha512-brVgsaCLk4MCwdoaTs0xMNWeIb29d5KhAZnSuUTlkRklOZ0BUBlH3SnLetiz96EBHErPanV1lFAoEM7nmTNOKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiD/QMOTXVHg/L86ouALSifpfWXFmpP9WBhefwrKlp2AIgKIos/xo7DSfom2s9IbGIGi4mB1vY2Dvdc181OCloLJM="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"vol4ok","email":"admin@vol4ok.net"},"maintainers":[{"name":"vol4ok","email":"admin@vol4ok.net"}],"directories":{}},"0.4.1":{"name":"hogan-express","version":"0.4.1","description":"Mustache template engine for express 3.x. Support partials and layout","main":"hogan-express.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:vol4ok/hogan-express.git"},"keywords":["mustache","hogan","partials","layout","template","engine"],"author":{"name":"Andrew Volkov","email":"hello@vol4ok.net"},"license":"MIT","dependencies":{"hogan.js":">=2.0.0"},"devDependencies":{"coffee-script":"1.x.x","colors":"0.6.x"},"bugs":{"url":"https://github.com/vol4ok/hogan-express/issues"},"_id":"hogan-express@0.4.1","dist":{"shasum":"880005af92db1e47ec9262133beabeef3f0a4771","tarball":"https://registry.npmjs.org/hogan-express/-/hogan-express-0.4.1.tgz","integrity":"sha512-QWeyXXkZkfoN8Q/QIsV7IekS320wWWF0bqic0p8Js4qUzj1Wk+AwpDZ1O2Ni9RtLPjeN77e6Ea5bAIkvpBSskg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIETQ+L2ebNS4DceW9Aeub8O6PpryVyHOboH6F8FppBXbAiAcsqHgihTFtwkT4HLexSKVgfffF7sGvcuEM1gMfCaGqA=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"vol4ok","email":"admin@vol4ok.net"},"maintainers":[{"name":"vol4ok","email":"admin@vol4ok.net"}],"directories":{}},"0.5.0":{"name":"hogan-express","version":"0.5.0","description":"Mustache template engine for express 3.x. Support partials and layout","main":"hogan-express.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:vol4ok/hogan-express.git"},"keywords":["mustache","hogan","partials","layout","template","engine"],"author":{"name":"Andrew Volkov","email":"hello@vol4ok.net"},"license":"MIT","dependencies":{"hogan.js":">=2.0.0"},"devDependencies":{"coffee-script":"1.x.x","colors":"0.6.x","supertest":"~0.8.0","cheerio":"~0.12.2","expect.js":"~0.2.0","express":"~3.4.0"},"bugs":{"url":"https://github.com/vol4ok/hogan-express/issues"},"_id":"hogan-express@0.5.0","dist":{"shasum":"3c08ff93fe9c3ecc97f40c95ff729f07c6566a7b","tarball":"https://registry.npmjs.org/hogan-express/-/hogan-express-0.5.0.tgz","integrity":"sha512-7PH3DZ0vgGo6RspaAT8fW4nELAxqJAb8UV9fcHP72MF2jhyt5DHnE6vfz839AZH/KWuPF1pqTPGoMubIvYhG8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEJpUmjAzbTKbd7b3xgv9Gsr+9DZ0OyrIXYXzDQHDHHxAiEA+jdm7rK54NlCAAb1AQgyALIEKbe7g8jEaozWk0Fk5BQ="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"vol4ok","email":"admin@vol4ok.net"},"maintainers":[{"name":"vol4ok","email":"admin@vol4ok.net"}],"directories":{}},"0.5.1":{"name":"hogan-express","version":"0.5.1","description":"Mustache template engine for express 3.x. Support partials and layout","main":"hogan-express.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:vol4ok/hogan-express.git"},"keywords":["mustache","hogan","partials","layout","template","engine"],"author":{"name":"Andrew Volkov","email":"hello@vol4ok.net"},"license":"MIT","dependencies":{"hogan.js":">=2.0.0"},"devDependencies":{"coffee-script":"1.x.x","colors":"0.6.x","supertest":"~0.8.0","cheerio":"~0.12.2","expect.js":"~0.2.0","express":"~3.4.0"},"bugs":{"url":"https://github.com/vol4ok/hogan-express/issues"},"_id":"hogan-express@0.5.1","dist":{"shasum":"533f9fd6cc30721e9480ee3a77adcdffba6dc267","tarball":"https://registry.npmjs.org/hogan-express/-/hogan-express-0.5.1.tgz","integrity":"sha512-qAmqVbbts2s/G6kRBWI0CZ2hJJ196+5MCgqCmcG+X6oUHq+Cwc7YAJR3nrJ1sY6ab/D9MSbJGqLYfCtDCwl2ww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID5KRI5qtqrLBOtpguv27tFrO22sQCr9OuKzBO5Jdr95AiEAtglGCqFLh3NowOf2pwIcf69pocn/krFvTg7QHXPHPAw="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"vol4ok","email":"admin@vol4ok.net"},"maintainers":[{"name":"vol4ok","email":"admin@vol4ok.net"}],"directories":{}},"0.5.2":{"name":"hogan-express","version":"0.5.2","description":"Mustache template engine for express 3.x. Support partials and layout","main":"hogan-express.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:vol4ok/hogan-express.git"},"keywords":["mustache","hogan","partials","layout","template","engine"],"author":{"name":"Andrew Volkov","email":"hello@vol4ok.net"},"license":"MIT","dependencies":{"hogan.js":">=2.0.0"},"devDependencies":{"coffee-script":"1.x.x","colors":"0.6.x","supertest":"~0.8.0","cheerio":"~0.12.2","expect.js":"~0.2.0","express":"~3.4.0"},"bugs":{"url":"https://github.com/vol4ok/hogan-express/issues"},"homepage":"https://github.com/vol4ok/hogan-express","_id":"hogan-express@0.5.2","dist":{"shasum":"52994ac842a423d4e1075181b9a3247de36950eb","tarball":"https://registry.npmjs.org/hogan-express/-/hogan-express-0.5.2.tgz","integrity":"sha512-tJsDoMyiK3aIdDz9liyQ9j+dwpK+pvGXxAaRZ8Cp5LS1dJlihtkZo+0rROwqZ2yqrxsjboMIrADq/W/HePBBgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYkYB8O3v7YUrbtYmGg1y57BCOQ9YFY8AOjG5ZnIhgyAIhALZKd0bbdisHQFxzKfI6H7tIc5E3bVVOPI30FARtwofQ"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"vol4ok","email":"admin@vol4ok.net"},"maintainers":[{"name":"vol4ok","email":"admin@vol4ok.net"}]}},"readme":"## HOGAN-EXPRESS\n\n[Mustache][1] template engine for the [express 3.x][2] web framework.\n\nUses twitter's [hogan.js][3] engine.\n\nSupports\n  - Partials (Allows you to modularize, to move pieces of templates to their own file - think of these as \"included\" templates)\n  - Layouts (Allows you to consolidate common elements of your templates - think of these as \"parent\" templates)\n  - Caching (Makes your app more efficient by reducing unnecessary rendering)\n  - Lambdas (Allows you to create custom filters/lambdas)\n\n### Install\n\nInstall hogan-express using [npm][4]:\n\n`npm install hogan-express`\n\n### Usage\n\n#### Setup\nTo use hogan-express, map the file extension of your choice to the\nhogan-express engine in your app setup.  For example:\n\n```coffeescript\napp.set 'view engine', 'html'    # use .html extension for templates\napp.set 'layout', 'layout'       # use layout.html as the default layout\napp.set 'partials', foo: 'foo'   # define partials available to all pages\napp.enable 'view cache'\napp.engine 'html', require('hogan-express')\n```\n\n#### Rendering a template\n\nWithin your app route callback, define `res.locals` and call `res.render`, passing any partials required by your template.  For example:\n\n```coffeescript\napp.get '/', (req,res)->\n  res.locals = name: 'Andrew'\n  res.render 'template', partials: {message: 'message'}\n```\n\nThis would render the layout (`layout.html`, defined in setup) using the template (`template.html`) and the specified partials (`message.html`).\n\nIf `layout.html` contained:\n\n```html\n<p>\n  <strong>Message Layout</strong>\n  {{{ yield }}}\n</p>\n```\n\nand `template.html` contained:\n\n```html\n<em>{{ name }} says {{> message }}</em>\n```\n\nand `message.html` contained:\n\n```html\nHello World.\n```\n\nthe callback would produce:\n\n```html\n<p>\n  <strong>Message Layout</strong>\n  <em>Andrew says Hello World.</em>\n</p>\n```\n\nThe special `{{{ yield }}}` variable in `layout.html` indicates the location in your layout file where your template is rendered.  You can define your layout using `app.set 'layout', ...` or specify it when calling `res.render`.  If a layout is not provided, the template is rendered directly.\n\n#### Custom yield tags\n\nYou can define more extension points in `layout.html` using custom tags ``{{yield-<name>}}``.  For example:\n\nlayout:\n\n```html\n<head>\n  ...\n  {{{yield-styles}}}\n  {{{yield-scripts}}}\n  ...\n</head>\n```\n\nindex:\n\n```html\n{{#yield-styles}}\n  <style>\n    ...\n  </style>\n{{/yield-styles}}\n\n{{#yield-scripts}}\n  <script>\n    ...\n  </script>\n{{/yield-scripts}}\n```\n\nThe page `index.html` will be rendered into ``{{yield}}`` without the content in ``{{#yield-styles}}...{{/yield-styles}`` and ``{{#yield-scripts}}...{{/yield-scripts}}``. That content goes into accordingly named tags in `layout.html`.  If ``{{{yield-styles}}}`` is missing, the styles tag content will not be rendered.\n\n#### Custom layouts\n\nTo render a page with custom layout, just specify it in the options: `res.render \"admin.html\", layout: \"admin-layout\"`\n\n#### Custom Lambdas / Filters\n\nTo create custom filters (or lambdas) you can just specify your filter functions in the options:\n\n```coffeescript\napp.get '/', (req,res)->\n\n  res.locals = myDefaultLabel: \"oops\" # here to show a little of how scoping works\n\n  res.render 'template',\n    message: 'This is a message. HERE.'\n    mylist: [{label: \"one\", num: 1},{label: \"two\", num: 2},{num: 3}]\n\n    lambdas:\n     lowercase: (text) ->\n       return text.toLowerCase()\n     reverseString: (text) ->\n       return text.split(\"\").reverse().join(\"\")\n```\n\ntemplate:\n\n```html\n<p>Lowercase <strong>{{message}}</strong>: {{#lambdas.lowercase}}{{message}}{{/lambdas.lowercase}}</p>\n<ul>\n  {{#mylist}}\n  <li>{{num}}: {{label}} is {{#reverseString}}{{label}}{{#reverseString}} in reverse.</li>\n  {{/mylist}}\n</ul>\n```\n\nrendered html:\n\n```html\n<p>Lowercase <strong>This is a message. HERE.</strong>: this is a message. here.</p>\n<ul>\n  <li>1: one is eno in reverse.</li>\n  <li>2: two is owt in reverse.</li>\n  <li>3: oops is spoo in reverse.</li>\n</ul>\n```\n\n### Contributors\n\n[Contributors list](https://github.com/vol4ok/hogan-express/graphs/contributors)\n\nThank you for your participation!\n\n### License\nhogan-express is released under an [MIT License][5].\n\n[1]: http://mustache.github.io/mustache.5.html\n[2]: http://expressjs.com/\n[3]: https://github.com/twitter/hogan.js\n[4]: https://npmjs.org/\n[5]: http://opensource.org/licenses/MIT\n","maintainers":[{"name":"vol4ok","email":"admin@vol4ok.net"}],"time":{"modified":"2022-06-18T21:03:44.019Z","created":"2012-07-21T13:55:47.985Z","0.1.0":"2012-07-21T13:55:49.810Z","0.2.0":"2012-07-23T07:59:07.496Z","0.2.1":"2012-07-23T08:09:52.869Z","0.2.2":"2012-07-28T07:55:47.695Z","0.3.0":"2012-07-28T11:11:11.957Z","0.3.1":"2012-08-16T15:41:22.959Z","0.3.2":"2012-09-03T10:11:00.313Z","0.3.3":"2012-10-08T09:42:43.205Z","0.4.0":"2013-08-20T07:36:52.184Z","0.4.1":"2013-08-20T20:53:13.707Z","0.5.0":"2013-10-07T16:55:11.552Z","0.5.1":"2013-11-06T07:20:14.930Z","0.5.2":"2013-12-30T06:57:34.501Z"},"author":{"name":"Andrew Volkov","email":"hello@vol4ok.net"},"repository":{"type":"git","url":"git@github.com:vol4ok/hogan-express.git"},"users":{"fgribreau":true,"bkbonner":true,"nba1090":true,"djbrandl":true,"cb1kenobi":true,"markthethomas":true,"lassevolkmann":true,"psmorrow":true,"bapinney":true,"kfl":true,"samlaudev":true,"dzhou777":true},"homepage":"https://github.com/vol4ok/hogan-express","keywords":["mustache","hogan","partials","layout","template","engine"],"bugs":{"url":"https://github.com/vol4ok/hogan-express/issues"},"license":"MIT","readmeFilename":"README.md"}