{"versions":{"2.5.1":{"author":{"name":"Igor Soarez","email":"igorsoarez@gmail.com"},"name":"express-ejs-layouts","description":"Layout support for ejs in express.","keywords":["express","layout","ejs"],"version":"2.5.1","main":"lib/express-layouts.js","devDependencies":{"ejs":"^2.6.1","express":"*","mocha":"*","should":"*","supertest":"*"},"optionalDependencies":{},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/Soarez/express-ejs-layouts.git"},"gitHead":"c1820e90426267f272ed3a88c5802a67de7fd028","bugs":{"url":"https://github.com/Soarez/express-ejs-layouts/issues"},"homepage":"https://github.com/Soarez/express-ejs-layouts#readme","dependencies":{},"_id":"express-ejs-layouts@2.5.1","_nodeVersion":"15.13.0","_npmVersion":"7.7.6","dist":{"shasum":"d204d9065ee2825fcbd718d820289fc81e691ccb","size":4424,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/express-ejs-layouts/-/express-ejs-layouts-2.5.1.tgz","integrity":"sha512-IXROv9n3xKga7FowT06n1Qn927JR8ZWDn5Dc9CJQoiiaaDqbhW5PDmWShzbpAa2wjWT1vJqaIM1S6vJwwX11gA=="},"_npmUser":{"name":"anonymous","email":"i@soarez.me"},"directories":{},"maintainers":[{"name":"anonymous","email":"igorsoarez@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ejs-layouts_2.5.1_1623587389061_0.5619158016919361"},"_hasShrinkwrap":false,"publish_time":1623587389235,"_cnpm_publish_time":1623587389235,"_cnpmcore_publish_time":"2021-12-18T17:56:41.893Z","contributors":[]},"2.5.0":{"author":{"name":"Igor Soarez","email":"igorsoarez@gmail.com"},"name":"express-ejs-layouts","description":"Layout support for ejs in express.","keywords":["express","layout","ejs"],"version":"2.5.0","main":"lib/express-layouts.js","dependencies":{},"devDependencies":{"express":"*","supertest":"*","ejs":"^2.6.1","mocha":"*","should":"*"},"optionalDependencies":{},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/Soarez/express-ejs-layouts.git"},"gitHead":"8ac3d32446d46441c8ce20590732ad49a863137d","bugs":{"url":"https://github.com/Soarez/express-ejs-layouts/issues"},"homepage":"https://github.com/Soarez/express-ejs-layouts#readme","_id":"express-ejs-layouts@2.5.0","_npmVersion":"5.6.0","_nodeVersion":"9.10.0","_npmUser":{"name":"anonymous","email":"i@soarez.me"},"dist":{"shasum":"b33f285fa7d5d2b8a6b7ab6569730547156e4e79","size":4446,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/express-ejs-layouts/-/express-ejs-layouts-2.5.0.tgz","integrity":"sha512-27Kza3FR8UqvQsq1ewaxC2IwpgrQttYDEFN5s8D74Fv1VPdzsXFWsiKhPMlNauG+DrgMAmh7FhQl5hKHffd+wQ=="},"maintainers":[{"name":"anonymous","email":"igorsoarez@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ejs-layouts_2.5.0_1533638160587_0.4860942562644921"},"_hasShrinkwrap":false,"publish_time":1533638160656,"_cnpm_publish_time":1533638160656,"_cnpmcore_publish_time":"2021-12-18T17:56:42.102Z","contributors":[]},"2.4.0":{"author":{"name":"Igor Soarez","email":"igorsoarez@gmail.com"},"name":"express-ejs-layouts","description":"Layout support for ejs in express.","keywords":["express","layout","ejs"],"version":"2.4.0","main":"lib/express-layouts.js","dependencies":{},"devDependencies":{"express":"*","supertest":"*","ejs":"*","mocha":"*","should":"*"},"optionalDependencies":{},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/Soarez/express-ejs-layouts.git"},"gitHead":"b21680c332689b5fa5cedab2c6c2dc4cfb277f4f","bugs":{"url":"https://github.com/Soarez/express-ejs-layouts/issues"},"homepage":"https://github.com/Soarez/express-ejs-layouts#readme","_id":"express-ejs-layouts@2.4.0","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"anonymous","email":"igorsoarez@gmail.com"},"dist":{"shasum":"00612e536f71c9d648e483072667ae85fd5f6d3a","size":4477,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/express-ejs-layouts/-/express-ejs-layouts-2.4.0.tgz","integrity":"sha512-RVQNw0tQLiRaNYoUKBqHsBbHVTrMNPUWS1D1NhKC4F0Hyf82fxCLk5pQJehUebcu5o7GWjhHBszLsaZ7SNAycg=="},"maintainers":[{"name":"anonymous","email":"igorsoarez@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ejs-layouts_2.4.0_1522276365693_0.15197710189153057"},"_hasShrinkwrap":false,"publish_time":1522276365789,"_cnpm_publish_time":1522276365789,"_cnpmcore_publish_time":"2021-12-18T17:56:42.323Z","contributors":[]},"2.3.1":{"author":{"name":"Igor Soarez","email":"igorsoarez@gmail.com"},"name":"express-ejs-layouts","description":"Layout support for ejs in express.","keywords":["express","layout","ejs"],"version":"2.3.1","main":"lib/express-layouts.js","dependencies":{},"devDependencies":{"express":"*","supertest":"*","ejs":"*","mocha":"*","should":"*"},"optionalDependencies":{},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/Soarez/express-ejs-layouts.git"},"gitHead":"c89ac81d17ad65229d7879fb2b9042e7af650462","bugs":{"url":"https://github.com/Soarez/express-ejs-layouts/issues"},"homepage":"https://github.com/Soarez/express-ejs-layouts#readme","_id":"express-ejs-layouts@2.3.1","_shasum":"0cac7a9ce52f55cd567b43bdb39226e724ad50e7","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"anonymous","email":"igorsoarez@gmail.com"},"dist":{"shasum":"0cac7a9ce52f55cd567b43bdb39226e724ad50e7","size":4483,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/express-ejs-layouts/-/express-ejs-layouts-2.3.1.tgz","integrity":"sha512-VQGC2S6lI+HFYu/cv4bH0FzzHXQuNj4mb08yGS2bpkED1tu6VKdRGGjyAZlfNWPNhrOZOlw2SFdK6ybRaELh5w=="},"maintainers":[{"name":"anonymous","email":"igorsoarez@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ejs-layouts-2.3.1.tgz_1501264263684_0.6632295085582882"},"directories":{},"publish_time":1501264264564,"_hasShrinkwrap":false,"_cnpm_publish_time":1501264264564,"_cnpmcore_publish_time":"2021-12-18T17:56:42.774Z","contributors":[]},"2.3.0":{"author":{"name":"Igor Soarez","email":"igorsoarez@gmail.com"},"name":"express-ejs-layouts","description":"Layout support for ejs in express.","keywords":["express","layout","ejs"],"version":"2.3.0","main":"lib/express-layouts.js","dependencies":{},"devDependencies":{"express":"*","supertest":"*","ejs":"*","mocha":"*","should":"*"},"optionalDependencies":{},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/Soarez/express-ejs-layouts.git"},"gitHead":"3992cb30ecdfd6134c5180244175ad6e1a5371a3","bugs":{"url":"https://github.com/Soarez/express-ejs-layouts/issues"},"homepage":"https://github.com/Soarez/express-ejs-layouts#readme","_id":"express-ejs-layouts@2.3.0","_shasum":"80bee93ed83174c8967a6fcff2fdd3e9afb7087a","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.1","_npmUser":{"name":"anonymous","email":"igorsoarez@gmail.com"},"dist":{"shasum":"80bee93ed83174c8967a6fcff2fdd3e9afb7087a","size":4429,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/express-ejs-layouts/-/express-ejs-layouts-2.3.0.tgz","integrity":"sha512-nGvsGbqrtQFvOg4GCQrOjhBdCIKpOz6G85u2XGH+ymiSbq35XKuBbyqizSlH8qiYkvEvxS51XR9y0TPnUDSMuw=="},"maintainers":[{"name":"anonymous","email":"igorsoarez@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/express-ejs-layouts-2.3.0.tgz_1490953915403_0.6853080068249255"},"directories":{},"publish_time":1490953915997,"_hasShrinkwrap":false,"_cnpm_publish_time":1490953915997,"_cnpmcore_publish_time":"2021-12-18T17:56:43.130Z","contributors":[]},"2.2.0":{"author":{"name":"Igor Soarez","email":"igorsoarez@gmail.com"},"name":"express-ejs-layouts","description":"Layout support for ejs in express.","keywords":["express","layout","ejs"],"version":"2.2.0","main":"lib/express-layouts.js","dependencies":{},"devDependencies":{"express":"*","supertest":"*","ejs":"*","mocha":"*","should":"*"},"optionalDependencies":{},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/Soarez/express-ejs-layouts.git"},"gitHead":"cd659fac111c182f5d05f6de1ab1a57087c038b0","bugs":{"url":"https://github.com/Soarez/express-ejs-layouts/issues"},"homepage":"https://github.com/Soarez/express-ejs-layouts#readme","_id":"express-ejs-layouts@2.2.0","_shasum":"5f3b9a243d279256bcb59f558e9a0d2ced1ad450","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"anonymous","email":"igorsoarez@gmail.com"},"dist":{"shasum":"5f3b9a243d279256bcb59f558e9a0d2ced1ad450","size":3676,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/express-ejs-layouts/-/express-ejs-layouts-2.2.0.tgz","integrity":"sha512-gW2FXx1VAacocYDM5O1q+I73gsxouivgrgwuiITLpSD3lwUWH3BBUhdYGB4WOi6g6yNJ1h3mP0ewbTLXyZVgKw=="},"maintainers":[{"name":"anonymous","email":"igorsoarez@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/express-ejs-layouts-2.2.0.tgz_1468547214480_0.5386936080176383"},"directories":{},"publish_time":1468547217103,"_hasShrinkwrap":false,"_cnpm_publish_time":1468547217103,"_cnpmcore_publish_time":"2021-12-18T17:56:43.408Z","contributors":[]},"2.1.0":{"author":{"name":"Igor Soarez","email":"igorsoarez@gmail.com"},"name":"express-ejs-layouts","description":"Layout support for ejs in express.","keywords":["express","layout","ejs"],"version":"2.1.0","main":"lib/express-layouts.js","dependencies":{},"devDependencies":{"express":"*","supertest":"*","ejs":"*","mocha":"*","should":"*"},"optionalDependencies":{},"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/Soarez/express-ejs-layouts.git"},"gitHead":"6335ee9a4d94dad135d1cc3799940bfbdf52ecab","bugs":{"url":"https://github.com/Soarez/express-ejs-layouts/issues"},"homepage":"https://github.com/Soarez/express-ejs-layouts","_id":"express-ejs-layouts@2.1.0","_shasum":"b7f398d681fc474bff52593f1bf166da349c29f8","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"anonymous","email":"igorsoarez@gmail.com"},"dist":{"shasum":"b7f398d681fc474bff52593f1bf166da349c29f8","size":3303,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/express-ejs-layouts/-/express-ejs-layouts-2.1.0.tgz","integrity":"sha512-T4TzGXq1FFb3zzn33FXKgpV5qRcfvhMyUu+kJbjkFhZRaLRD2Fb2owGfPGDybJ+kKLE9/4YEzNnCpB4tGpHWiw=="},"maintainers":[{"name":"anonymous","email":"igorsoarez@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/express-ejs-layouts-2.1.0.tgz_1460456750934_0.9297066109720618"},"directories":{},"publish_time":1460456752305,"_hasShrinkwrap":false,"_cnpm_publish_time":1460456752305,"_cnpmcore_publish_time":"2021-12-18T17:56:43.604Z","contributors":[]},"2.0.0":{"author":{"name":"Igor Soarez","email":"igorsoarez@gmail.com"},"name":"express-ejs-layouts","description":"Layout support for ejs in express.","keywords":["express","layout","ejs"],"version":"2.0.0","main":"lib/express-layouts.js","dependencies":{},"devDependencies":{"express":"*","supertest":"*","ejs":"*","mocha":"*","should":"*"},"optionalDependencies":{},"engines":{"node":"*"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/Soarez/express-ejs-layouts.git"},"gitHead":"3764ef4b2cd3e54b57e5e662f28a1f4b22b4fb4c","bugs":{"url":"https://github.com/Soarez/express-ejs-layouts/issues"},"homepage":"https://github.com/Soarez/express-ejs-layouts","_id":"express-ejs-layouts@2.0.0","_shasum":"d0ab77da681bb7652c3881f4b34793faebfac1ba","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"anonymous","email":"igorsoarez@gmail.com"},"maintainers":[{"name":"anonymous","email":"igorsoarez@gmail.com"}],"dist":{"shasum":"d0ab77da681bb7652c3881f4b34793faebfac1ba","size":2828,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/express-ejs-layouts/-/express-ejs-layouts-2.0.0.tgz","integrity":"sha512-ADM79gR6TbRhe7AJV88ZyoKRVqBuPHQbZQhF8Pj51cvMhixPwSWIWSJRHaU/D3mfZfhb9IHcUeqnOqLuaVlkkw=="},"directories":{},"publish_time":1444666290532,"_hasShrinkwrap":false,"_cnpm_publish_time":1444666290532,"_cnpmcore_publish_time":"2021-12-18T17:56:43.819Z","contributors":[]},"1.1.0":{"author":{"name":"Igor Soarez","email":"igorsoarez@gmail.com"},"name":"express-ejs-layouts","description":"Layout support for ejs in express.","keywords":["express","layout","ejs"],"version":"1.1.0","main":"lib/express-layouts.js","dependencies":{},"devDependencies":{"express":"*","supertest":"*","ejs":"*","mocha":"*","should":"*"},"optionalDependencies":{},"engines":{"node":"*"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/Soarez/express-ejs-layouts.git"},"bugs":{"url":"https://github.com/Soarez/express-ejs-layouts/issues"},"homepage":"https://github.com/Soarez/express-ejs-layouts","_id":"express-ejs-layouts@1.1.0","dist":{"shasum":"9eaa12247a52a5a9a741f38ce870b9bc47719bf1","size":2658,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/express-ejs-layouts/-/express-ejs-layouts-1.1.0.tgz","integrity":"sha512-u3VLBBitwlux5PdsNIC/gHdE0fqzQr2K2UZphRko2D224RkyBbFf7N0fP/h+h97H03HgkS8JDs75f+bqhRKPog=="},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"anonymous","email":"igorsoarez@gmail.com"},"maintainers":[{"name":"anonymous","email":"igorsoarez@gmail.com"}],"directories":{},"publish_time":1401232746029,"_hasShrinkwrap":false,"_cnpm_publish_time":1401232746029,"_cnpmcore_publish_time":"2021-12-18T17:56:44.032Z","contributors":[]},"1.0.0":{"author":{"name":"Igor Soarez","email":"igorsoarez@gmail.com"},"name":"express-ejs-layouts","description":"Layout support for ejs in express.","keywords":["express","layout","ejs"],"version":"1.0.0","main":"lib/express-layouts.js","dependencies":{},"devDependencies":{"express":"3.0.X","supertest":"*","ejs":"*","mocha":"*","should":"*"},"optionalDependencies":{},"engines":{"node":"*"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/Soarez/express-ejs-layouts.git"},"bugs":{"url":"https://github.com/Soarez/express-ejs-layouts/issues"},"homepage":"https://github.com/Soarez/express-ejs-layouts","_id":"express-ejs-layouts@1.0.0","dist":{"shasum":"3127fed646420fd6740ad7c88c506193b6338acb","size":2662,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/express-ejs-layouts/-/express-ejs-layouts-1.0.0.tgz","integrity":"sha512-zSluwH6QycXD6NsdBK0R7EgUR+dYJEy7zbU1UQrJSqBB51sPJJ7oW3qz+oPO3RvyCuqzVCy4LdMHORiYqdeO8g=="},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"anonymous","email":"igorsoarez@gmail.com"},"maintainers":[{"name":"anonymous","email":"igorsoarez@gmail.com"}],"directories":{},"publish_time":1401124569635,"_hasShrinkwrap":false,"_cnpm_publish_time":1401124569635,"_cnpmcore_publish_time":"2021-12-18T17:56:44.254Z","contributors":[]},"0.3.1":{"author":{"name":"Igor Soarez","email":"igorsoarez@gmail.com"},"name":"express-ejs-layouts","description":"Layout support for ejs in express.","keywords":["express","layout","ejs"],"version":"0.3.1","main":"lib/express-layouts.js","dependencies":{},"devDependencies":{"express":"3.0.X","supertest":"*","ejs":"*","mocha":"*","should":"*"},"optionalDependencies":{},"engines":{"node":"*"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/Soarez/express-ejs-layouts.git"},"_id":"express-ejs-layouts@0.3.1","dist":{"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/express-ejs-layouts/-/express-ejs-layouts-0.3.1.tgz","shasum":"df4b1905f34ebc372a8ae59e1c09afdecbdd5fb9","size":2554,"noattachment":false,"integrity":"sha512-G/OyhtSwCtFgpexQ9iOB6/BzW1XcFaaQSPlm8nEdvz2AZDbtNIdTnKvjiiafpN1yWe30sgo0rPL71nQt9YpzDw=="},"_npmVersion":"1.1.63","_npmUser":{"name":"anonymous","email":"igorsoarez@gmail.com"},"maintainers":[{"name":"anonymous","email":"igorsoarez@gmail.com"}],"directories":{},"publish_time":1356712070568,"_hasShrinkwrap":false,"_cnpm_publish_time":1356712070568,"_cnpmcore_publish_time":"2021-12-18T17:56:44.448Z","contributors":[]},"0.3.0":{"author":{"name":"Igor Soarez","email":"igorsoarez@gmail.com"},"name":"express-ejs-layouts","description":"Layout support for ejs in express.","keywords":["express","layout","ejs"],"version":"0.3.0","main":"lib/express-layouts.js","dependencies":{},"devDependencies":{"express":"3.0.X","supertest":"*","ejs":"*","mocha":"*","should":"*"},"optionalDependencies":{},"engines":{"node":"*"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/Soarez/express-ejs-layouts.git"},"_npmUser":{"name":"anonymous"},"_id":"express-ejs-layouts@0.3.0","_engineSupported":true,"_npmVersion":"1.1.4","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/express-ejs-layouts/-/express-ejs-layouts-0.3.0.tgz","shasum":"cc00e14cf03005af00832c733b64828f99b8af13","size":2620,"noattachment":false,"integrity":"sha512-C1DZ5kgSGGEmrX+5VhJtA+XkXP7q6Y/kY5VEexHbyFnLnPOCPcMgtKBlrSv/GOzU9pOw2X6fIDcPkXHhFgjAWA=="},"maintainers":[{"name":"anonymous","email":"igorsoarez@gmail.com"}],"directories":{},"publish_time":1349164690892,"_hasShrinkwrap":false,"_cnpm_publish_time":1349164690892,"_cnpmcore_publish_time":"2021-12-18T17:56:44.704Z","contributors":[]},"0.2.0":{"author":{"name":"Igor Soarez","email":"igorsoarez@gmail.com"},"name":"express-ejs-layouts","description":"Layout support for ejs in express.","keywords":["express","layout","ejs"],"version":"0.2.0","main":"lib/express-layouts.js","dependencies":{},"devDependencies":{"express":"3.0.X","ejs":"*","mocha":"*","should":"*"},"optionalDependencies":{},"engines":{"node":"*"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/Soarez/express-ejs-layouts.git"},"_npmUser":{"name":"anonymous","email":"igorsoarez@gmail.com"},"_id":"express-ejs-layouts@0.2.0","_engineSupported":true,"_npmVersion":"1.1.18","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/express-ejs-layouts/-/express-ejs-layouts-0.2.0.tgz","shasum":"b8dda0b4bfb9b2cdb4d95b15572f3e0e6b2ccced","size":2553,"noattachment":false,"integrity":"sha512-sSXb8secxXXx8ydy1jsjXnJUfpK331YBUvlsZ1SWdWswUMQTkI0elV4TT6yGHc3764S5nEkihQw8ndYerCBvVQ=="},"maintainers":[{"name":"anonymous","email":"igorsoarez@gmail.com"}],"directories":{},"publish_time":1346965762067,"_hasShrinkwrap":false,"_cnpm_publish_time":1346965762067,"_cnpmcore_publish_time":"2021-12-18T17:56:44.888Z","contributors":[]},"0.1.0":{"author":{"name":"Igor Soarez","email":"igorsoarez@gmail.com"},"name":"express-ejs-layouts","description":"Layout support for ejs in express.","keywords":["express","layout","ejs"],"version":"0.1.0","main":"lib/express-layouts.js","dependencies":{},"devDependencies":{"express":"3.0.X","ejs":"*","mocha":"*","should":"*"},"optionalDependencies":{},"engines":{"node":"*"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/Soarez/express-ejs-layouts.git"},"_npmUser":{"name":"anonymous","email":"igorsoarez@gmail.com"},"_id":"express-ejs-layouts@0.1.0","_engineSupported":true,"_npmVersion":"1.1.18","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/express-ejs-layouts/-/express-ejs-layouts-0.1.0.tgz","shasum":"5021c6bc632568096d292014ee16e31dddcbd710","size":1718,"noattachment":false,"integrity":"sha512-CIRgwKUYT76KA6+0KbzCYY1Nl7+iP6yWpniwXVkzUYfi5rX649zXT0C8JYGi9s8Lp4gU8D18OP5QrhZHKAqk+A=="},"maintainers":[{"name":"anonymous","email":"igorsoarez@gmail.com"}],"directories":{},"publish_time":1335651127549,"_hasShrinkwrap":false,"_cnpm_publish_time":1335651127549,"_cnpmcore_publish_time":"2021-12-18T17:56:45.093Z","contributors":[]}},"dist-tags":{"latest":"2.5.1"},"name":"express-ejs-layouts","time":{"created":"2022-01-26T17:22:25.212Z","modified":"2022-01-26T17:22:25.212Z","2.5.1":"2021-06-13T12:29:49.235Z","2.5.0":"2018-08-07T10:36:00.656Z","2.4.0":"2018-03-28T22:32:45.789Z","2.3.1":"2017-07-28T17:51:04.564Z","2.3.0":"2017-03-31T09:51:55.997Z","2.2.0":"2016-07-15T01:46:57.103Z","2.1.0":"2016-04-12T10:25:52.305Z","2.0.0":"2015-10-12T16:11:30.532Z","1.1.0":"2014-05-27T23:19:06.029Z","1.0.0":"2014-05-26T17:16:09.635Z","0.3.1":"2012-12-28T16:27:50.568Z","0.3.0":"2012-10-02T07:58:10.892Z","0.2.0":"2012-09-06T21:09:22.067Z","0.1.0":"2012-04-28T22:12:07.549Z"},"readme":"# express-ejs-layouts\n\n> Layout support for ejs in express\n\n[![npm version](https://badge.fury.io/js/express-ejs-layouts.svg)](https://badge.fury.io/js/express-ejs-layouts)\n[![build status](https://secure.travis-ci.org/soarez/express-ejs-layouts.svg)](http://travis-ci.org/Soarez/express-ejs-layouts)\n\n## Installation\n\n```sh\n$ npm install express-ejs-layouts\n```\n\n## Example\n\nCheck the example folder.\n\n1. `git clone https://github.com/soarez/express-ejs-layouts.git`\n2. `cd express-ejs-layouts`\n3. `npm install`\n4. `node example`\n5. Open http://localhost:3000/\n\n## Usage\n\n```javascript\nvar express = require('express');\nvar expressLayouts = require('express-ejs-layouts');\n\nvar app = express();\n\napp.set('view engine', 'ejs');\n\napp.use(expressLayouts);\n\napp.get('/', function(req, res) {\n  var locals = {\n    title: 'Page Title',\n    description: 'Page Description',\n    header: 'Page Header'\n  };\n  res.render('the-view', locals);\n});\n\napp.listen(3000);\n```\n\n\n### `contentFor`\n\nA view\n\n```ejs\ntyler\n<%- contentFor('foo') %>\nclub\n<%- contentFor('bar') %>\nfight\n```\n\nWith a layout\n\n```ejs\n<%-bar%> <%-foo%>\n<%-body%>\n```\n\nRenders\n\n```\nfight club\ntyler\n```\n\n\nAs another example, consider this view:\n\n```html\nfoo\n<%- contentFor('pageSectionA') %>\nbar\n<%- contentFor('pageSectionB') %>\nbaz\n```\n\nUsing it with this layout:\n\n```html\n<div class=\"header\"><%- pageSectionA %></div>\n<div class=\"body\"><%- body %></div>\n<div class=\"footer\"><%-defineContent('pageSectionB')%></div>\n```\n\nWill render:\n\n```html\n<div class=\"header\">bar</div>\n<div class=\"body\">foo</div>\n<div class=\"footer\">baz</div>\n```\n\nNotice that the difference between using `<%- pageSectionA %>` and `<%-defineContent('pageSectionA')%>` is that the former will generate an error if the view doesn't define content for this section.\n\n\n### Script blocks extraction\n\nIf you like to place all the script blocks at the end, you can do it like this:\n\n```javascript\napp.set(\"layout extractScripts\", true)\n```\n\nA view\n\n```html\nsomething<script>somejs<script>something\n```\n\nWith a layout\n\n```ejs\n<body>\n  <%- body %>\n  <%- script %>\n</body>\n```\n\nRenders\n\n```html\n<body>\n  somethingsomething\n  <script>somejs<script>\n</body>\n```\n\nEnabling invididually:\n\n```javascript\nreq.render('view', { extractScripts: true })\n```\n\n\nWhen the `\"layout extractScripts\"` option is activated, scripts defined in views will be extracted (won't be a part of `body`) and will be available for use in the layout through the variable `scripts`.\n\nAnother example:\n\nThis view:\n\n```html\n<script src=\"/b.js\" />\n<div>foo</div>\n<script src=\"/a.js\" />\n<div>bar</div>\n<script src=\"/c.js\" />\n```\n\nUsed with this layout:\n\n```html\n<div class=\"main\">\n<%- body %>\n</div>\n<!-- place the scripts at the end of the html page -->\n<%- script %>\n```\n\nWill render:\n\n```html\n<div class=\"main\">\n<div>foo</div>\n<div>bar</div>\n</div>\n<!-- place the scripts at the end of the html page -->\n<script src=\"/b.js\" />\n<script src=\"/a.js\" />\n<script src=\"/c.js\" />\n```\n\n### Style blocks extraction\n\nWorks exactly like script blocks extraction except:\n\n* Supported tags are `<link rel=\"stylesheet\" …>` and `<style …>`\n* The option is named `extractStyles`\n* The template variable in layout is `style`\n\n### Meta blocks extraction\n\nWorks exactly like script blocks extraction except:\n\n* Supported tags are `<meta …>` and `<meta …/>`\n* The option is named `extractMetas`\n* The template variable in layout is `meta`\n\n### Set custom default layout\n\nBy default 'layout.ejs' is used. If you want to specify your custom\nlayout (e.g. 'layouts/layout.ejs'), just set `layout` property in\nexpress app settings.\n\n```\napp.set('layout', 'layouts/layout');\n```\n\n### Set custom layout for single render\n\nJust pass `layout` as render locals object.\n\n```\napp.get('/', function(req, res) {\n  res.render('the-view', { layout: 'specific-layout' });\n});\n```\n### Set no layout for single render\n\nJust pass `layout: false` as render locals object.\n\n```\napp.get('/', function(req, res) {\n  res.render('the-view', { layout: false });\n);\n```\n\n## Optional sections\n\nIn a layout, you can have optional sections using `defineContent`:\nUnspecified section content defaults to `''`.\n\n```ejs\n1\n<%-defineContent('a')%>\n2\n<%-defineContent('b')%>\n3\n```\n\nwith a view:\n\n```ejs\n<%- contentFor('a') %>\n1.5\n```\n\nwill render:\n\n```ejs\n1\n1.5\n2\n3\n```\n\n\n## Running tests\n\nClone the repo and run:\n\n```sh\n$ npm test\n```\n\n## License\n\nMIT","users":{}}