EJS
Embedded JavaScript templates
Installation
$ npm install ejs-layout var engine = require;app.set;app.engine;
Features
- Extend from EJS
- Add : Layout for EJS
Layouts
- views/layout.ejs
Welcome to EJS-Layout <%+ yield('content') %> <%+ yield('footer') %>
- views/example.ejs
<%+ extend('layout') %> <%+ section('content') %> This is content for example page <%+ endSection %> <%+ section('footer') %> This is footer for example page <%+ endSection %>
License
Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
EJS Embedded JavaScript templates copyright 2112 mde@fleegix.org.