{"_id":"handlebars-layouts","_rev":"58-af5e1968064453d8f60c0ba76618d4c6","name":"handlebars-layouts","description":"Handlebars helpers which implement layout blocks similar to Jade, Jinja, Nunjucks, Swig, and Twig.","dist-tags":{"latest":"3.1.4"},"versions":{"0.1.0":{"name":"handlebars-layouts","version":"0.1.0","license":"MIT","repository":{"type":"git","url":"http://github.com/shannonmoeller/grunt-demo.git"},"main":"handlebars-layouts.js","devDependencies":{"brfs":"*","grunt":"*","grunt-browserify":"*","grunt-contrib-clean":"*","grunt-contrib-jshint":"*","grunt-contrib-watch":"*","grunt-simple-mocha":"*","handlebars":"*","mocha":"*"},"scripts":{"test":"grunt test"},"testling":{"harness":"mocha","scripts":"test/all.js","browsers":["chrome/24.0","chrome/25.0","chrome/canary","firefox/18.0","firefox/19.0","firefox/nightly","iexplore/8.0","iexplore/9.0","iexplore/10.0","opera/11.6","opera/12.0","opera/next","safari/5.0.5","safari/5.1","safari/6.0","iphone/6.0","ipad/6.0","android-browser/4.2"]},"description":"> Handlebars helpers which implement Jade-like layout blocks.","bugs":{"url":"https://github.com/shannonmoeller/grunt-demo/issues"},"_id":"handlebars-layouts@0.1.0","dist":{"shasum":"7a00bd36cd407977ff29faeb1082a2db07b96267","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-0.1.0.tgz","integrity":"sha512-jGvU+U9oSxUBHRk5PuQksiM5PzlVhrM57wi5dLTCarvp7QMb6G/ddm9tyaMP5uHgIsOHTw68wGRYC+gwMTbShg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICJ39RC5azBwhya9XqTT0vdKdPF/L7GEhOsz001TehbNAiEAzdgrKEl48HPVmeh/zQDx5s0tutGcbXjsNFC/9WvODy8="}]},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"directories":{}},"0.1.1":{"name":"handlebars-layouts","version":"0.1.1","description":"Handlebars helpers which implement Jade-like layout blocks.","keywords":["dust","express","handlebars","jade","layout","mote","mustache"],"license":"MIT","repository":{"type":"git","url":"http://github.com/shannonmoeller/grunt-demo.git"},"main":"lib/handlebars-layouts.js","devDependencies":{"brfs":"*","grunt":"*","grunt-browserify":"*","grunt-contrib-clean":"*","grunt-contrib-jshint":"*","grunt-contrib-watch":"*","grunt-simple-mocha":"*","handlebars":"*","mocha":"*"},"scripts":{"test":"grunt test"},"testling":{"harness":"mocha","scripts":"test/all.js","browsers":["chrome/24.0","chrome/25.0","chrome/canary","firefox/18.0","firefox/19.0","firefox/nightly","iexplore/8.0","iexplore/9.0","iexplore/10.0","opera/11.6","opera/12.0","opera/next","safari/5.0.5","safari/5.1","safari/6.0","iphone/6.0","ipad/6.0","android-browser/4.2"]},"bugs":{"url":"https://github.com/shannonmoeller/grunt-demo/issues"},"_id":"handlebars-layouts@0.1.1","dist":{"shasum":"a620d913cc977d3f5a93cd956a1713d192825fcf","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-0.1.1.tgz","integrity":"sha512-Xfi/06SPdTExCzbtwY8XXDn6VpLcpeb4IAn+/0/pz82dr5myCgW106jQvRjIMszN5lSd3Y/NhqFcU6DnDJm7EA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICZ+driQQtTLLwSOb/8fkkttoo2bwIN8IPEkw559jKj+AiA/Jw4rfX9E5oujmP7HEj11kaSfP9AFIb7s9ra/3WkHCQ=="}]},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"directories":{}},"0.1.3":{"name":"handlebars-layouts","version":"0.1.3","description":"Handlebars helpers which implement Jade-like layout blocks.","keywords":["dust","express","handlebars","jade","layout","mote","mustache"],"license":"MIT","repository":{"type":"git","url":"https://github.com/shannonmoeller/handlebars-layouts.git"},"main":"lib/handlebars-layouts.js","devDependencies":{"brfs":"*","grunt":"*","grunt-browserify":"*","grunt-contrib-clean":"*","grunt-contrib-jshint":"*","grunt-contrib-watch":"*","grunt-simple-mocha":"*","handlebars":"*","mocha":"*"},"scripts":{"test":"grunt test"},"testling":{"harness":"mocha","scripts":"test/all.js","browsers":["chrome/24.0","chrome/25.0","chrome/canary","firefox/18.0","firefox/19.0","firefox/nightly","iexplore/8.0","iexplore/9.0","iexplore/10.0","opera/11.6","opera/12.0","opera/next","safari/5.0.5","safari/5.1","safari/6.0","iphone/6.0","ipad/6.0","android-browser/4.2"]},"bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"_id":"handlebars-layouts@0.1.3","dist":{"shasum":"ec42755f9e191fbfe56e863d82839787aeeb9271","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-0.1.3.tgz","integrity":"sha512-iJFtnLwUspwtzzJIyJZZR/DdZTYivPyNH4UjKUQ3Q/7KBpeJc33MhwEAo4jSrzIMA0yNZ5asa8nIezl4TUDRbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDHf3JmQPguP2y3OjYEoGOM9AH3Cchf/u+jHd3KK3YFFAiByCp03ZYF36DUothUe9PFLnVwrUKq2eHTRwiCrGFho4w=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"directories":{}},"0.2.0":{"name":"handlebars-layouts","version":"0.2.0","description":"Handlebars helpers which implement Jade-like layout blocks.","keywords":["dust","express","handlebars","jade","layout","mote","mustache"],"license":"MIT","repository":{"type":"git","url":"https://github.com/shannonmoeller/handlebars-layouts.git"},"main":"lib/handlebars-layouts.js","devDependencies":{"brfs":"*","grunt":"*","grunt-browserify":"*","grunt-contrib-clean":"*","grunt-contrib-jshint":"*","grunt-contrib-watch":"*","grunt-simple-mocha":"*","handlebars":"*","mocha":"*"},"scripts":{"test":"grunt test"},"testling":{"harness":"mocha","scripts":"test/all.js","browsers":["chrome/30.0","chrome/31.0","chrome/canary","firefox/24.0","firefox/25.0","firefox/nightly","iexplore/8.0","iexplore/9.0","iexplore/10.0","opera/16.0","opera/17.0","opera/next","safari/5.1","safari/6.0","iphone/6.0","ipad/6.0","android-browser/4.2"]},"bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"homepage":"https://github.com/shannonmoeller/handlebars-layouts","_id":"handlebars-layouts@0.2.0","dist":{"shasum":"eab66c2686d0467eec3b8d53f068e9de8102f5bf","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-0.2.0.tgz","integrity":"sha512-3GET+1zLhytk+fiR+wF4wRY24SJMFFbT+4B/jw8QBmGuDSFkYbc6XjIrR6PT6T3+F3Uhqt6H+Iqbn2jfLhR0+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGdI7SsBsWETTD+r+NbBbtZH5DXvK32iP6Yfac1q1dr4AiBXy4aM80yWFPvgd+vbKhN00TYHLtZM1LSgBt5RLtfCkw=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"directories":{}},"0.3.1":{"name":"handlebars-layouts","version":"0.3.1","description":"Handlebars helpers which implement Jade-like layout blocks.","keywords":["blocks","dust","express","handlebars","jade","layout","mote","mustache"],"homepage":"https://github.com/shannonmoeller/handlbars-layouts","bugs":{"url":"https://github.com/shannonmoeller/handlbars-layouts/issues"},"license":"MIT","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"main":"index.js","repository":{"type":"git","url":"https://github.com/shannonmoeller/handlbars-layouts.git"},"scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","test":"gulp test"},"devDependencies":{"coveralls":"^2.6.1","gulp":"^3.6.0","gulp-istanbul":"^0.1.1","gulp-jasmine":"^0.2.0","gulp-jscs":"^0.4.1","gulp-jshint":"^1.5.1","gulp-watch":"^0.5.3","handlebars":"~2.0","jshint-stylish":"^0.1.5","vinyl-source-stream":"^0.1.1","browserify":"^3.44.1"},"engines":{"node":">= 0.10"},"_id":"handlebars-layouts@0.3.1","dist":{"shasum":"f134803da5560e258c2c17b1f746930476d9c3b7","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-0.3.1.tgz","integrity":"sha512-pLE1gCjmWKWuvkpmJyC4EwRJZy8gYIwabvZ36mx6/4pA7mJgN6F5ds4/hh56LjVfZmG7TncUy+xaFLvT1hYxrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8dls+MLwhB+1G1DPk+wLw52d1pJWk6Tj4bddpygXfjQIgGRiR1nHFZZioWiawbpM6krb3IC0AtRhJrW2kz4vApRg="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"directories":{}},"0.3.2":{"name":"handlebars-layouts","version":"0.3.2","description":"Handlebars helpers which implement Jade-like layout blocks.","keywords":["blocks","dust","express","handlebars","jade","layout","mote","mustache"],"homepage":"https://github.com/shannonmoeller/handlbars-layouts","bugs":{"url":"https://github.com/shannonmoeller/handlbars-layouts/issues"},"license":"MIT","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"main":"index.js","repository":{"type":"git","url":"https://github.com/shannonmoeller/handlbars-layouts.git"},"scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","test":"gulp test"},"devDependencies":{"coveralls":"^2.6.1","gulp":"^3.6.0","gulp-istanbul":"^0.1.1","gulp-jasmine":"^0.2.0","gulp-jscs":"^0.4.1","gulp-jshint":"^1.5.1","gulp-watch":"^0.5.3","handlebars":"~2.0","jshint-stylish":"^0.1.5","vinyl-source-stream":"^0.1.1","browserify":"^3.44.1"},"engines":{"node":">= 0.10"},"_id":"handlebars-layouts@0.3.2","dist":{"shasum":"9a3b84dace20042a59002a2ec54bf18496b11026","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-0.3.2.tgz","integrity":"sha512-uvi1rQsBnUBBWZTyr4jLgT+jlIs0cAsVneWCNvQDHtt0YDU2DIbLlt69UDLRsQhOAsAFMjWP/0VW1iZkAhkeeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB1R6i/BTX/7+nPt3Mh9Wx6BBJm8iCzhvTppmM7wnQvrAiBySeMrgNPKJbJ44CC0aeRzBt3txX1RNYCb6nRjH5ScKg=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"directories":{}},"0.3.3":{"name":"handlebars-layouts","version":"0.3.3","description":"Handlebars helpers which implement Jade-like layout blocks.","keywords":["blocks","dust","express","handlebars","jade","layout","mote","mustache"],"homepage":"https://github.com/shannonmoeller/handlebars-layouts","bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"license":"MIT","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"main":"index.js","repository":{"type":"git","url":"https://github.com/shannonmoeller/handlebars-layouts.git"},"scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","test":"gulp test"},"devDependencies":{"coveralls":"^2.6.1","gulp":"^3.6.0","gulp-istanbul":"^0.1.1","gulp-jasmine":"^0.2.0","gulp-jscs":"^0.4.1","gulp-jshint":"^1.5.1","gulp-watch":"^0.5.3","handlebars":"~2.0","jshint-stylish":"^0.1.5","vinyl-source-stream":"^0.1.1","browserify":"^3.44.1"},"engines":{"node":">= 0.10"},"_id":"handlebars-layouts@0.3.3","dist":{"shasum":"2d212f3fc9ae08c747936718e1219f343e3bd3b2","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-0.3.3.tgz","integrity":"sha512-NbwEGquXIVD6PTZ10dYeKhqoZ89zJOY9GHkla1zWSTuTwIF7qLgZyJZ7U9+x+zBkgIFtqYbPE/MnG16hK4XG2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHG8qWPhfssvzHuKFUgBOOFRHbJ8DGn001S+++Fi/XkfAiBmTbtV7jVGTVgee2i9qSiSwYIAczaLsypyr5WqPLuZKg=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"directories":{}},"1.0.0":{"name":"handlebars-layouts","version":"1.0.0","description":"Handlebars helpers which implement layout blocks similar to Jade, Jinja, Swig, and Twig.","keywords":["blocks","dust","express","handlebars","hbs","jade","layout","mote","mustache","swig","twig"],"homepage":"https://github.com/shannonmoeller/handlebars-layouts","bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"license":"MIT","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"main":"index.js","repository":{"type":"git","url":"https://github.com/shannonmoeller/handlebars-layouts.git"},"scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","test":"gulp test"},"devDependencies":{"browserify":"^6.1.0","coveralls":"^2.11.2","expect.js":"^0.3.1","express":"^4.9.8","gulp":"^3.8.9","gulp-istanbul":"^0.3.1","gulp-jscs":"^1.2.1","gulp-jshint":"^1.8.5","gulp-mocha":"^1.1.1","gulp-prettify":"^0.3.0","handlebars":"~2.0","hbs":"^2.7.0","hbs-utils":"0.0.3","jshint-stylish":"^1.0.0","map-stream":"^0.1.0","vinyl-fs":"^0.3.10","vinyl-source-stream":"^1.0.0"},"engines":{"node":">= 0.10"},"gitHead":"43d425d735f3a20f07f1d339bf49cf7827c4b9c9","_id":"handlebars-layouts@1.0.0","_shasum":"11c2c67cdc0f1706e173517ed6015108558206a5","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.32","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"dist":{"shasum":"11c2c67cdc0f1706e173517ed6015108558206a5","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-1.0.0.tgz","integrity":"sha512-xajOl8kv+xhzXmNRPPqeFL7STjG4mQj7yWN9aqwX0r3abFuEU18WN5PbiU6LkezT4D/7VYturdqKqraR0GIMeg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIERXJtilk48cw4ihmq5DTjX0uJxPj1fNyFGHDhjx33HKAiAlELfpgq4mrzebA148GAAt41QgIVh1FxTRKmCeR3Hf0Q=="}]},"directories":{}},"1.1.0":{"name":"handlebars-layouts","version":"1.1.0","description":"Handlebars helpers which implement layout blocks similar to Jade, Jinja, Swig, and Twig.","keywords":["blocks","dust","express","handlebars","hbs","jade","layout","mote","mustache","swig","twig"],"homepage":"https://github.com/shannonmoeller/handlebars-layouts","bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"license":"MIT","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"main":"index.js","repository":{"type":"git","url":"https://github.com/shannonmoeller/handlebars-layouts.git"},"scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","test":"gulp test"},"devDependencies":{"browserify":"^6.1.0","coveralls":"^2.11.2","expect.js":"^0.3.1","express":"^4.9.8","gulp":"^3.8.9","gulp-istanbul":"^0.3.1","gulp-jscs":"^1.2.1","gulp-jshint":"^1.8.5","gulp-mocha":"^1.1.1","gulp-prettify":"^0.3.0","handlebars":"~2.0","hbs":"^2.7.0","hbs-utils":"0.0.3","jshint-stylish":"^1.0.0","map-stream":"^0.1.0","vinyl-fs":"^0.3.10","vinyl-source-stream":"^1.0.0"},"engines":{"node":">= 0.10"},"gitHead":"4727b8316602853ce3da9b51298f9cbe55ee9dd6","_id":"handlebars-layouts@1.1.0","_shasum":"2612be5aed8f20269737c7311da15c9c2d75fbbc","_from":".","_npmVersion":"2.1.14","_nodeVersion":"0.10.35","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"dist":{"shasum":"2612be5aed8f20269737c7311da15c9c2d75fbbc","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-1.1.0.tgz","integrity":"sha512-GsN0tRll2baOGmvq/7nzkRSUhFDrI0o2B+UeOk8g8u5k3kpv+G1neJTRi0T4iqbko9/AqmTWFhes5PmfcM8qRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUwHFHFUm9L/PObUTu770IQa4oFRcqH8R+uLiNbUxGigIgDkajyDbFh5uNMkzl8y3p+jm3/Aet3V1gdMaQdxJYwjg="}]},"directories":{}},"2.0.0":{"name":"handlebars-layouts","version":"2.0.0","description":"Handlebars helpers which implement layout blocks similar to Jade, Jinja, Swig, and Twig.","keywords":["blocks","dust","express","handlebars","hbs","jade","layout","mote","mustache","swig","twig"],"homepage":"https://github.com/shannonmoeller/handlebars-layouts","bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"license":"MIT","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"main":"index.js","repository":{"type":"git","url":"https://github.com/shannonmoeller/handlebars-layouts.git"},"scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","test":"gulp test"},"devDependencies":{"browserify":"^6.1.0","consolidate":"^0.12.1","coveralls":"^2.11.2","expect":"^1.6.0","express":"^4.9.8","gulp":"^3.8.9","gulp-istanbul":"^0.3.1","gulp-jscs":"^1.2.1","gulp-jshint":"^1.8.5","gulp-mocha":"^1.1.1","gulp-prettify":"^0.3.0","handlebars":"~2.0","jshint-stylish":"^1.0.0","through2":"^0.6.5","vinyl-fs":"^0.3.10","vinyl-source-stream":"^1.0.0"},"engines":{"node":">= 0.10"},"gitHead":"b86936c671d9d5e71a21bd4cf1572619712000d7","_id":"handlebars-layouts@2.0.0","_shasum":"146c13202dc31ba740c67853c83471b544001135","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"dist":{"shasum":"146c13202dc31ba740c67853c83471b544001135","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-2.0.0.tgz","integrity":"sha512-rO9UW8cgF+xqm2qHZHQZBaYZDpMHLLZpPpZz6ZexF4EMeDsrfm1h4VSroAWnFZovHAEQ/lTnmbfpXV8WFVynvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrQYt7R8xmNe+310Kf7laVKEHU3p9M2NVcQUh0kVSTpQIgR6VhKsbULOBbBdJZmoKaAuaCnBt6eU/6YmN65ZFiJvU="}]},"directories":{}},"2.0.1":{"name":"handlebars-layouts","version":"2.0.1","description":"Handlebars helpers which implement layout blocks similar to Jade, Jinja, Swig, and Twig.","keywords":["blocks","dust","express","handlebars","hbs","jade","layout","mote","mustache","swig","twig"],"homepage":"https://github.com/shannonmoeller/handlebars-layouts","bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"license":"MIT","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"main":"index.js","repository":{"type":"git","url":"https://github.com/shannonmoeller/handlebars-layouts.git"},"scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","test":"gulp test","zuul":"zuul -- test/handlebars-layouts.spec.js"},"devDependencies":{"browserify":"^6.1.0","consolidate":"^0.12.1","coveralls":"^2.11.2","expect":"^1.6.0","express":"^4.9.8","gulp":"^3.8.9","gulp-istanbul":"^0.3.1","gulp-jscs":"^1.2.1","gulp-jshint":"^1.8.5","gulp-mocha":"^1.1.1","gulp-prettify":"^0.3.0","handlebars":"~2.0","jshint-stylish":"^1.0.0","through2":"^0.6.5","vinyl-fs":"^0.3.10","vinyl-source-stream":"^1.0.0","zuul":"^2.1.1"},"engines":{"node":">= 0.10"},"gitHead":"a045442e7344e10cd0b3c3015174d14d9a428b9b","_id":"handlebars-layouts@2.0.1","_shasum":"a2e776563ad959e05e70f81a31367458b407b769","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"dist":{"shasum":"a2e776563ad959e05e70f81a31367458b407b769","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-2.0.1.tgz","integrity":"sha512-KkGp/Ea436CUC7honH0RyNjAca+HDgSHSMJLwKGXAVPJXHjUvsYZNXUU7kQc1VQEsSfIzRGMnjwu7XJHM/Y5iw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUDKtdekMz1biNdsueCV9W355x6c21iZHkLlG4ofNK5QIhAMEuIR6cNxx0FQV5VG1s307jswLFVaCAN/yo4Kuv34bj"}]},"directories":{}},"2.0.2":{"name":"handlebars-layouts","version":"2.0.2","description":"Handlebars helpers which implement layout blocks similar to Jade, Jinja, Swig, and Twig.","keywords":["blocks","dust","express","handlebars","hbs","jade","layout","mote","mustache","swig","twig"],"homepage":"https://github.com/shannonmoeller/handlebars-layouts","bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"license":"MIT","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"main":"index.js","repository":{"type":"git","url":"https://github.com/shannonmoeller/handlebars-layouts.git"},"scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","test":"gulp test","zuul":"zuul -- test/handlebars-layouts.spec.js"},"devDependencies":{"browserify":"^9.0.8","consolidate":"^0.12.1","coveralls":"^2.11.2","expect":"^1.6.0","express":"^4.12.3","gulp":"^3.8.11","gulp-istanbul":"^0.8.1","gulp-jscs":"^1.6.0","gulp-jshint":"^1.10.0","gulp-mocha":"^2.0.1","gulp-prettify":"^0.3.0","handlebars":"~3.0","jshint-stylish":"^1.0.1","through2":"^0.6.5","vinyl-fs":"^1.0.0","vinyl-source-stream":"^1.1.0","zuul":"^2.1.1"},"engines":{"node":">= 0.10"},"gitHead":"20dbacbd52e327d23d5b91157f9caf9c3f05d67a","_id":"handlebars-layouts@2.0.2","_shasum":"f5b2d1d2405325c47419a8119bd4f847123f82b2","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"dist":{"shasum":"f5b2d1d2405325c47419a8119bd4f847123f82b2","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-2.0.2.tgz","integrity":"sha512-3NL7INChRkvMtWeiSCD1JIO7sB23QGWGAJElRghBMAh/SBxgYCCPVtKExjSCfrv36PO30ZYEq7B6NZHCFODFfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHREnWswovbXb+FNYJPFiXpYo//TvdTXmEE45lfK6BKAIhANlW4ZVU7WNT401Ospa8c5TM6hsBwa71AqS1SzIVEt5y"}]},"directories":{}},"3.0.0":{"name":"handlebars-layouts","version":"3.0.0","description":"Handlebars helpers which implement layout blocks similar to Jade, Jinja, Swig, and Twig.","keywords":["blocks","dust","express","handlebars","hbs","jade","layout","mote","mustache","swig","twig"],"homepage":"https://github.com/shannonmoeller/handlebars-layouts","bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"license":"MIT","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"main":"index.js","repository":{"type":"git","url":"https://github.com/shannonmoeller/handlebars-layouts.git"},"scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","test":"gulp test","zuul":"zuul -- test/handlebars-layouts.spec.js"},"devDependencies":{"browserify":"^10.2.4","consolidate":"^0.13.1","coveralls":"^2.11.2","expect":"^1.6.0","express":"^4.12.4","gulp":"^3.9.0","gulp-istanbul":"^0.10.0","gulp-jscs":"^1.6.0","gulp-jshint":"^1.11.0","gulp-mocha":"^2.1.1","gulp-prettify":"^0.3.0","handlebars":"~3.0","jshint-stylish":"^2.0.0","through2":"^2.0.0","vinyl-fs":"^1.0.0","vinyl-source-stream":"^1.1.0","zuul":"^3.0.0"},"engines":{"node":">= 0.10"},"gitHead":"bdbf99db575509527a096b1860fe6988c73fc580","_id":"handlebars-layouts@3.0.0","_shasum":"585649cfbd54faaacee2cb0f5864df29b821547d","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"dist":{"shasum":"585649cfbd54faaacee2cb0f5864df29b821547d","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-3.0.0.tgz","integrity":"sha512-2Pn6gKVw2SuhrefBaItBhGnsW1+u0dHy9N0sJUjYIgk55pfp5S2wkU2CniR3ypGLdH4Dm9Kz7G3Hto931ciAJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPWuvCNcXwhxARIE051tAZOuCJBrCFIgpV5q6OKxxQZwIgK6a0M1G7ySy1odsFLraRGtMkPncbcLTxDtzfWy+VrsU="}]},"directories":{}},"3.1.0":{"name":"handlebars-layouts","version":"3.1.0","description":"Handlebars helpers which implement layout blocks similar to Jade, Jinja, Swig, and Twig.","keywords":["blocks","dust","express","handlebars","hbs","jade","layout","mote","mustache","swig","twig"],"homepage":"https://github.com/shannonmoeller/handlebars-layouts","bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"license":"MIT","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/shannonmoeller/handlebars-layouts.git"},"scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","test":"gulp test","zuul":"zuul -- test/handlebars-layouts.spec.js"},"devDependencies":{"browserify":"^10.2.4","consolidate":"^0.13.1","coveralls":"^2.11.2","expect":"^1.6.0","express":"^4.12.4","gulp":"^3.9.0","gulp-eslint":"^0.14.0","gulp-istanbul":"^0.10.0","gulp-mocha":"^2.1.1","gulp-prettify":"^0.3.0","handlebars":"~3.0","jshint-stylish":"^2.0.0","through2":"^2.0.0","vinyl-fs":"^1.0.0","vinyl-source-stream":"^1.1.0","zuul":"^3.0.0"},"engines":{"node":">= 0.10"},"gitHead":"e241cf85928dda1eb726f41d1690f1d8d673279e","_id":"handlebars-layouts@3.1.0","_shasum":"459f8631e5ea97b4d7c3a37a9cc336d24f4207fd","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"dist":{"shasum":"459f8631e5ea97b4d7c3a37a9cc336d24f4207fd","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-3.1.0.tgz","integrity":"sha512-32VRkN3VjXE4AoIIwIQ3f4D5/IQnLl640E1Dkgfc9qbz4nQUuLwehNqZ91hv08f7BH4Eo8U7R99vGvsd1Rmq2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID47HNvSRTJFvpWTacqbszATk2YYGd7fVk5JhXsk+O19AiEAsGI9BJiY/b72MLaI3/a0Ul4jkyikQbSeBpfn5Mm7FJ8="}]},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"directories":{}},"3.1.1":{"name":"handlebars-layouts","version":"3.1.1","description":"Handlebars helpers which implement layout blocks similar to Jade, Jinja, Swig, and Twig.","keywords":["blocks","dust","express","handlebars","hbs","jade","layout","mote","mustache","swig","twig"],"homepage":"https://github.com/shannonmoeller/handlebars-layouts","bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"license":"MIT","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"main":"index.js","repository":{"type":"git","url":"https://github.com/shannonmoeller/handlebars-layouts.git"},"scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","test":"gulp test","zuul":"zuul -- test/handlebars-layouts.spec.js"},"devDependencies":{"browserify":"^10.2.4","consolidate":"^0.13.1","coveralls":"^2.11.2","expect":"^1.6.0","express":"^4.12.4","gulp":"^3.9.0","gulp-eslint":"^0.14.0","gulp-istanbul":"^0.10.0","gulp-mocha":"^2.1.1","gulp-prettify":"^0.3.0","handlebars":"~3.0","jshint-stylish":"^2.0.0","through2":"^2.0.0","vinyl-fs":"^1.0.0","vinyl-source-stream":"^1.1.0","zuul":"^3.0.0"},"engines":{"node":">= 0.10"},"dependencies":{},"gitHead":"404e4612262b9f86d7121b2bef7472fd2f3b8a22","_id":"handlebars-layouts@3.1.1","_shasum":"a86ab6739a061b6cbac533d67bacdc08d2d502a6","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"dist":{"shasum":"a86ab6739a061b6cbac533d67bacdc08d2d502a6","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-3.1.1.tgz","integrity":"sha512-ArlREw4P9L//otiDxF57/aLV7XC4Y7mss+dfABSLjdmwO7DpjPOxa5uqw6oST5HTZm/YPGRNi1wdRm/x9W/TFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYLBcBjX7Tge707tHUBgTyxo/UpRvQ/OAH9BGpnpJfNwIge2JQSB3WDV7r3yuTG55Hqr0aoRI28HaOlp4p8eqs64g="}]},"directories":{}},"3.1.2":{"name":"handlebars-layouts","version":"3.1.2","description":"Handlebars helpers which implement layout blocks similar to Jade, Jinja, Swig, and Twig.","keywords":["blocks","dust","express","handlebars","hbs","jade","layout","mote","mustache","swig","twig"],"homepage":"https://github.com/shannonmoeller/handlebars-layouts","bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"license":"MIT","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/shannonmoeller/handlebars-layouts.git"},"scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","lint":"eslint index.js gulpfile.js test/*.js","test":"gulp test","zuul":"zuul -- test/handlebars-layouts.spec.js"},"devDependencies":{"babel-eslint":"^4.1.1","browserify":"^10.2.4","consolidate":"^0.13.1","coveralls":"^2.11.2","expect":"^1.6.0","express":"^4.12.4","gulp":"^3.9.0","gulp-eslint":"^0.14.0","gulp-istanbul":"^0.10.0","gulp-mocha":"^2.1.1","gulp-prettify":"^0.3.0","handlebars":"~3.0","jshint-stylish":"^2.0.0","through2":"^2.0.0","vinyl-fs":"^1.0.0","vinyl-source-stream":"^1.1.0","zuul":"^3.0.0"},"engines":{"node":">= 0.10"},"dependencies":{},"gitHead":"a673dd2cea2e1e5650e8b7e38637a55c866564d8","_id":"handlebars-layouts@3.1.2","_shasum":"cfa044f321464123ef5c20bc363f895b03619a2d","_from":".","_npmVersion":"2.13.0","_nodeVersion":"2.4.0","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"dist":{"shasum":"cfa044f321464123ef5c20bc363f895b03619a2d","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-3.1.2.tgz","integrity":"sha512-dc2LCimYhUu1zLzttJlY/a0UAzUjU0j2rx6KK+fgyEnREzE1taWlBED+TmvC0XvBmmHv8O6ZSsG+QmhhcNT+pw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFgT9aCS9iGXzGWEy4FFNVJ/QP7ZBt/FBBkut0VwQgtpAiEAz5E9buMWW6ZCMDoK1LzXQCt3z9W/vZND995VZ5/vZaM="}]},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"directories":{}},"3.1.3":{"name":"handlebars-layouts","version":"3.1.3","description":"Handlebars helpers which implement layout blocks similar to Jade, Jinja, Swig, and Twig.","keywords":["blocks","dust","express","handlebars","hbs","jade","layout","mote","mustache","swig","twig"],"homepage":"https://github.com/shannonmoeller/handlebars-layouts","bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"license":"MIT","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/shannonmoeller/handlebars-layouts.git"},"scripts":{"coveralls":"cat ./coverage/lcov.info | coveralls","lint":"eslint index.js gulpfile.js test/*.js","test":"gulp test","zuul":"zuul -- test/handlebars-layouts.spec.js"},"devDependencies":{"babel-eslint":"^4.1.1","browserify":"^10.2.4","consolidate":"^0.13.1","coveralls":"^2.11.2","expect":"^1.6.0","express":"^4.12.4","gulp":"^3.9.0","gulp-eslint":"^0.14.0","gulp-istanbul":"^0.10.0","gulp-mocha":"^2.1.1","gulp-prettify":"^0.3.0","handlebars":"~3.0","jshint-stylish":"^2.0.0","through2":"^2.0.0","vinyl-fs":"^1.0.0","vinyl-source-stream":"^1.1.0","zuul":"^3.0.0"},"engines":{"node":">= 0.10"},"dependencies":{},"gitHead":"18a8c33db2545863ef99d764152dcc893978f324","_id":"handlebars-layouts@3.1.3","_shasum":"4d13d34dfea5d551d84da2d67bea6eb76dc8cc9f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"dist":{"shasum":"4d13d34dfea5d551d84da2d67bea6eb76dc8cc9f","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-3.1.3.tgz","integrity":"sha512-lR9JJw+THoZbmEolgO/omQlbGh/a0PBSuOJ7WJ97zzSVv2VxjXUyDwhW38x5Cls2lb4YJeO2arSqI0U/jMfoLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCijWhcknpbvZqGjD4AfDrZm91UZyXEieh7I7xkYnlEcAIgaorqJz3vVKH0ZzfHlBBvd++A+IsUJnFrj7V53kgjnFs="}]},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"directories":{}},"3.1.4":{"name":"handlebars-layouts","version":"3.1.4","description":"Handlebars helpers which implement layout blocks similar to Jade, Jinja, Nunjucks, Swig, and Twig.","keywords":["blocks","dust","express","handlebars","hbs","jade","layout","mote","mustache","nunjucks","swig","twig"],"homepage":"https://github.com/shannonmoeller/handlebars-layouts","bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"license":"MIT","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/shannonmoeller/handlebars-layouts.git"},"scripts":{"gulp":"gulp","prepublish":"gulp build","report":"cat ./coverage/lcov.info | coveralls","test":"gulp test","zuul":"zuul --local -- test/handlebars-layouts.spec.js"},"devDependencies":{"babel-eslint":"^4.1.1","browserify":"^10.2.4","consolidate":"^0.13.1","coveralls":"^2.11.2","expect":"^1.6.0","express":"^4.12.4","gulp":"^3.9.0","gulp-eslint":"^0.14.0","gulp-istanbul":"^0.10.0","gulp-mocha":"^2.1.1","gulp-prettify":"^0.3.0","handlebars":"~3.0","jshint-stylish":"^2.0.0","through2":"^2.0.0","vinyl-fs":"^1.0.0","vinyl-source-stream":"^1.1.0","zuul":"^3.0.0"},"engines":{"node":">= 0.10"},"dependencies":{},"gitHead":"37a74b261a38db18d7f7be4613e5cdf252f95e03","_id":"handlebars-layouts@3.1.4","_shasum":"26b3beb931b4b877dfbf7e6feaf4058ee6228b02","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"shannonmoeller","email":"me@shannonmoeller.com"},"dist":{"shasum":"26b3beb931b4b877dfbf7e6feaf4058ee6228b02","tarball":"https://registry.npmjs.org/handlebars-layouts/-/handlebars-layouts-3.1.4.tgz","integrity":"sha512-2llBmvnj8ueOfxNHdRzJOcgalzZjYVd9+WAl93kPYmlX4WGx7FTHTzNxhK+i9YKY2OSjzfehgpLiIwP/OJr6tw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnctGl7WB59eU8WZFthS11ZZWqgvgHrt9e/h6Rhq1xdAIgJRBAIkY1krwyXQOHXD8G+lVHhk169dtRVkiqYCdi6i8="}]},"maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/handlebars-layouts-3.1.4.tgz_1476412257372_0.5341614501085132"},"directories":{}}},"readme":"# `handlebars-layouts`\n\n[![NPM version][npm-img]][npm-url] [![Downloads][downloads-img]][npm-url] [![Build Status][travis-img]][travis-url] [![Coverage Status][coveralls-img]][coveralls-url] [![Tip][amazon-img]][amazon-url]\n\nHandlebars helpers which implement layout blocks similar to Jade, Jinja, Nunjucks, Swig, and Twig.\n\n## Install\n\nWith [Node.js](http://nodejs.org):\n\n    $ npm install handlebars-layouts\n\nWith [Bower](http://bower.io):\n\n    $ bower install shannonmoeller/handlebars-layouts\n\n## API\n\nHelpers are generated by passing in your instance of Handlebars. This allows you to selectively register the helpers on various instances of Handlebars.\n\n### `layouts(handlebars) : Object`\n\n- `handlebars` `Handlebars` - An instance of Handlebars.\n\nGenerates an object containing the layout helpers suitible for passing into `registerHelper`.\n\n```js\nvar handlebars = require('handlebars'),\n    layouts = require('handlebars-layouts');\n\nhandlebars.registerHelper(layouts(handlebars));\n```\n\n### `layouts.register(handlebars) : Object`\n\n- `handlebars` `Handlebars` - An instance of Handlebars.\n\nBoth generates an object containing the layout helpers and registers them with Handlebars automatically.\n\n```js\nvar handlebars = require('handlebars'),\n    layouts = require('handlebars-layouts');\n\nlayouts.register(handlebars);\n```\n\n## Helpers\n\n### `{{#extend [partial] [context] [key=value ...]}}`\n\n- `partial` `String` - Name of partial to render.\n- `context` `Object` _(Optional)_ - A custom context for the partial.\n- `attributes` `Object` _(Optional)_ - Arbitrary values that will be added to the partial data context.\n\nLoads a layout partial of a given name and defines block content.\n\n```handlebars\n{{#extend \"layout\" foo=\"bar\"}}\n    {{#content \"title\" mode=\"prepend\"}}Example - {{/content}}\n{{/extend}}\n```\n\nThe `{{#extend}}` helper allows you to reason about your layouts as you would class extension where the above is equivalent to the following psuedo code:\n\n```js\nclass Page extends Layout {\n    constructor() {\n        this.foo = 'bar';\n    }\n\n    title() {\n        return 'Example - ' + super();\n    }\n}\n```\n\n### `{{#embed [partial] [context] [key=value ...]}}`\n\n- `partial` `String` - Name of partial to render.\n- `context` `Object` _(Optional)_ - A custom context for the partial.\n- `attributes` `Object` _(Optional)_ - Arbitrary values that will be added to the partial data context.\n\nAllows you to load a partial which itself extends from a layout. Blocks defined in embedded partials will not conflict with those in the primary layout.\n\n```handlebars\n{{#extend \"layout\"}}\n\n    {{#content \"body\"}}\n        {{#embed \"gallery\"}}\n            {{#content \"body\"}}\n                <img src=\"1.png\" alt=\"\" />\n                <img src=\"2.png\" alt=\"\" />\n            {{/content}}\n        {{/embed}}\n\n        {{#embed \"modal\" foo=\"bar\" name=user.fullName}}\n            {{#content \"title\" mode=\"prepend\"}}Image 1 - {{/content}}\n            {{#content \"body\"}}<img src=\"1.png\" alt=\"\" />{{/content}}\n        {{/embed}}\n    {{/content}}\n\n{{/extend}}\n```\n\nThe `{{#embed}}` helper allows you to reason about your partials as you would class instantiation where the above is equivalent to the following psuedo code:\n\n```js\nclass Page extends Layout {\n    body() {\n        var gallery = new Gallery();\n\n        gallery.replaceBody('<img src=\"1.png\" alt=\"\" />\\n<img src=\"2.png\" alt=\"\" />');\n\n        var modal = new Modal({\n            foo: 'bar',\n            name: this.user.fullName\n        });\n\n        modal.prependTitle('Image 1 - ');\n        modal.replaceBody('<img src=\"1.png\" alt=\"\" />');\n\n        return gallery.toString() + modal.toString();\n    }\n}\n```\n\n### `{{#block [name]}}`\n\n- `name` `String` - Block identifier.\n\nDefines a named block, with optional default content. Blocks may have content appended, prepended, or replaced entirely when extending or embedding. You may append and prepend to the same block multiple times.\n\n```handlebars\n{{#block \"header\"}}\n    <h1>Hello World</h1>\n{{/block}}\n\n{{#block \"main\"}}\n    <p>Lorem ipsum...</p>\n{{/block}}\n\n{{#block \"footer\"}}\n    <p>&copy; 1970</p>\n{{/block}}\n```\n\n### `{{#content [name] mode=\"(append|prepend|replace)\"}}`\n\n- `name` `String` - Identifier of the block to modify.\n- `mode` `String` _(Optional)_ - Means of providing block content. Default: `replace`.\n\nSets block content, optionally appending or prepending using the `mode` attribute.\n\nLayout:\n\n```handlebars\n<html>\n    ...\n    <body>\n        {{#block \"header\"}}\n            <h1>Hello World</h1>\n        {{/block}}\n\n        {{#block \"main\"}}\n            <p>Lorem ipsum.</p>\n        {{/block}}\n\n        {{#block \"footer\"}}\n            <p>&copy; 1999</p>\n        {{/block}}\n    </body>\n</html>\n```\n\nPage:\n\n```handlebars\n{{#extend \"layout\"}}\n\n    {{#content \"header\"}}\n        <h1>Goodnight Moon</h1>\n    {{/content}}\n\n    {{#content \"main\" mode=\"append\"}}\n        <p>Dolor sit amet.</p>\n    {{/content}}\n\n    {{#content \"footer\" mode=\"prepend\"}}\n        <p>MIT License</p>\n    {{/content}}\n\n{{/extend}}\n```\n\nOutput:\n\n```handlebars\n<html>\n    ...\n    <body>\n        <h1>Goodnight Moon</h1>\n\n        <p>Lorem ipsum.</p>\n        <p>Dolor sit amet.</p>\n\n        <p>MIT License</p>\n        <p>&copy; 1999</p>\n    </body>\n</html>\n```\n\n### Conditional Blocks\n\nThere are times where you need to wrap a block with an element or use a different class depending on whether content has been provided for a block. For this purpose, the `content` helper may be called as a [subexpression](http://handlebarsjs.com/expressions.html#subexpressions) to check whether content has been provided for a block.\n\nFor example, you may wish to have an optional column in a grid layout:\n\n```handlebars\n{{!-- layout.hbs --}}\n<div class=\"grid\">\n    <div class=\"grid-col {{#if (content \"right\")}}grid-col_2of3{{else}}grid-col_full{{/if}}\">\n        {{{block \"left\"}}}\n    </div>\n    {{#if (content \"right\")}}\n        <div class=\"grid-col grid-col_1of3\">\n            {{{block \"right\"}}}\n        </div>\n    {{/if}}\n</div>\n```\n\nFor a page that only needs a left column, you may omit defining content for the `right` block:\n\n```handlebars\n{{!-- page.html --}}\n{{#extend \"layout\"}}\n\n    {{#content \"left\"}}\n        <p>Left</p>\n    {{/content}}\n\n{{/extend}}\n```\n\nResulting in:\n\n```html\n<div class=\"grid\">\n    <div class=\"grid-col grid-col_full\">\n        <p>Left</p>\n    </div>\n</div>\n```\n\nFor a page with two columns, simply define content for both blocks:\n\n```handlebars\n{{!-- page.html --}}\n{{#extend \"layout\"}}\n\n    {{#content \"left\"}}\n        <p>Left</p>\n    {{/content}}\n\n    {{#content \"right\"}}\n        <p>Right</p>\n    {{/content}}\n\n{{/extend}}\n```\n\nResulting in:\n\n```html\n<div class=\"grid\">\n    <div class=\"grid-col grid-col_2of3\">\n        <p>Left</p>\n    </div>\n    <div class=\"grid-col grid-col_1of3\">\n        <p>Right</p>\n    </div>\n</div>\n```\n\n## Example\n\n### layout.hbs\n\n```handlebars\n<!doctype html>\n<html lang=\"en-us\">\n<head>\n    {{#block \"head\"}}\n        <title>{{title}}</title>\n\n        <link rel=\"stylesheet\" href=\"assets/css/screen.css\" />\n    {{/block}}\n</head>\n<body>\n    <div class=\"site\">\n        <div class=\"site-hd\" role=\"banner\">\n            {{#block \"header\"}}\n                <h1>{{title}}</h1>\n            {{/block}}\n        </div>\n\n        <div class=\"site-bd\" role=\"main\">\n            {{#block \"body\"}}\n                <h2>Hello World</h2>\n            {{/block}}\n        </div>\n\n        <div class=\"site-ft\" role=\"contentinfo\">\n            {{#block \"footer\"}}\n                <small>&copy; 2013</small>\n            {{/block}}\n        </div>\n    </div>\n\n    {{#block \"foot\"}}\n        <script src=\"assets/js/controllers/home.js\"></script>\n    {{/block}}\n</body>\n</html>\n```\n\n### page.html\n\n```handlebars\n{{#extend \"layout\"}}\n    {{#content \"head\" mode=\"append\"}}\n        <link rel=\"stylesheet\" href=\"assets/css/home.css\" />\n    {{/content}}\n\n    {{#content \"body\"}}\n        <h2>Welcome Home</h2>\n\n        <ul>\n            {{#items}}\n                <li>{{.}}</li>\n            {{/items}}\n        </ul>\n    {{/content}}\n\n    {{#content \"foot\" mode=\"prepend\"}}\n        <script src=\"assets/js/analytics.js\"></script>\n    {{/content}}\n{{/extend}}\n```\n\n### Putting Them Together\n\n```js\nvar handlebars = require('handlebars');\nvar layouts = require('handlebars-layouts');\n\n// Register helpers\nhandlebars.registerHelper(layouts(handlebars));\n\n// Register partials\nhandlebars.registerPartial('layout', fs.readFileSync('layout.hbs', 'utf8'));\n\n// Compile template\nvar template = handlebars.compile(fs.readFileSync('page.html', 'utf8'));\n\n// Render template\nvar output = template({\n    title: 'Layout Test',\n    items: [\n        'apple',\n        'orange',\n        'banana'\n    ]\n});\n\nconsole.log(output);\n```\n\n### Output (prettified for readability)\n\n```handlebars\n<!doctype html>\n<html lang=\"en-us\">\n<head>\n    <title>Layout Test</title>\n\n    <link rel=\"stylesheet\" href=\"assets/css/screen.css\" />\n    <link rel=\"stylesheet\" href=\"assets/css/home.css\" />\n</head>\n<body>\n    <div class=\"site\">\n        <div class=\"site-hd\" role=\"banner\">\n            <h1>Layout Test</h1>\n        </div>\n\n        <div class=\"site-bd\" role=\"main\">\n            <h2>Welcome Home</h2>\n            <ul>\n                <li>apple</li>\n                <li>orange</li>\n                <li>banana</li>\n            </ul>\n        </div>\n\n        <div class=\"site-ft\" role=\"contentinfo\">\n            <small>&copy; 2013</small>\n        </div>\n    </div>\n\n    <script src=\"assets/js/analytics.js\"></script>\n    <script src=\"assets/js/controllers/home.js\"></script>\n</body>\n</html>\n```\n\n## Contribute\n\n[![Tasks][waffle-img]][waffle-url]\n\nStandards for this project, including tests, code coverage, and semantics are enforced with a build tool. Pull requests must include passing tests with 100% code coverage and no linting errors.\n\n## Test\n\n    $ npm test\n\n----\n\n© 2015 Shannon Moeller <me@shannonmoeller.com>\n\nLicensed under [MIT](http://shannonmoeller.com/mit.txt)\n\n[amazon-img]:    https://img.shields.io/badge/tip-jar-yellow.svg?style=flat-square\n[amazon-url]:    https://www.amazon.com/gp/registry/wishlist/1VQM9ID04YPC5?sort=universal-price\n[coveralls-img]: http://img.shields.io/coveralls/shannonmoeller/handlebars-layouts/master.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/shannonmoeller/handlebars-layouts\n[downloads-img]: http://img.shields.io/npm/dm/handlebars-layouts.svg?style=flat-square\n[npm-img]:       http://img.shields.io/npm/v/handlebars-layouts.svg?style=flat-square\n[npm-url]:       https://npmjs.org/package/handlebars-layouts\n[travis-img]:    http://img.shields.io/travis/shannonmoeller/handlebars-layouts.svg?style=flat-square\n[travis-url]:    https://travis-ci.org/shannonmoeller/handlebars-layouts\n[waffle-img]:    http://img.shields.io/github/issues/shannonmoeller/handlebars-layouts.svg?style=flat-square\n[waffle-url]:    http://waffle.io/shannonmoeller/handlebars-layouts\n","maintainers":[{"name":"shannonmoeller","email":"me@shannonmoeller.com"}],"time":{"modified":"2023-03-04T04:26:04.464Z","created":"2013-07-06T20:25:51.681Z","0.1.0":"2013-07-06T20:25:53.303Z","0.1.1":"2013-07-06T20:54:39.825Z","0.1.3":"2013-09-18T02:38:12.042Z","0.2.0":"2014-02-25T13:27:56.459Z","0.3.1":"2014-04-22T01:35:28.856Z","0.3.2":"2014-05-17T20:59:05.368Z","0.3.3":"2014-05-17T21:03:33.737Z","1.0.0":"2014-10-24T02:21:15.572Z","1.1.0":"2015-01-24T20:10:52.585Z","2.0.0":"2015-04-21T23:11:01.681Z","2.0.1":"2015-04-21T23:13:56.670Z","2.0.2":"2015-04-25T02:11:07.995Z","3.0.0":"2015-06-18T04:06:44.572Z","3.1.0":"2015-07-01T02:48:45.736Z","3.1.1":"2015-08-30T19:59:41.757Z","3.1.2":"2015-09-03T19:10:30.390Z","3.1.3":"2015-11-14T16:21:07.835Z","3.1.4":"2016-10-14T02:30:59.285Z"},"repository":{"type":"git","url":"git+https://github.com/shannonmoeller/handlebars-layouts.git"},"homepage":"https://github.com/shannonmoeller/handlebars-layouts","keywords":["blocks","dust","express","handlebars","hbs","jade","layout","mote","mustache","nunjucks","swig","twig"],"bugs":{"url":"https://github.com/shannonmoeller/handlebars-layouts/issues"},"license":"MIT","readmeFilename":"README.md","author":{"name":"Shannon Moeller","email":"me@shannonmoeller.com","url":"http://shannonmoeller.com"},"users":{"anarcho":true,"h4des":true,"neofreko":true,"feryardiant":true,"ablery":true,"antixrist":true,"milfromoz":true,"ru7hl355":true,"dennykuo":true,"arielfr":true,"unstoppablecarl":true,"tmurngon":true,"growdigital":true,"monjer":true,"beningreenjam":true,"keinakamura":true,"fabiomendonca":true,"hehaiyang":true,"hsiang":true,"rubenjose75":true,"knownasilya":true,"mjurincic":true,"neter":true,"flumpus-dev":true}}