Version 1.9.0
TL;DR
- Layouts support! π π₯ β¨ (see below)
- Added
types
field topackage.json
- Fixed benchmark page
Layouts
You should just be able to write
<% layout("./my-layout.eta") %>
Anywhere in your template file! my-layout.eta
will be rendered with Object.assign(it,{body:body})
, where body is the current template file.
Note: if you are using Eta in the browser, you can also use layouts. In that case, call layout
with the name of a template that has already been defined
Read here for more info about the release.
Commits
- Merge pull request #23 from eta-dev/layout-support 0856e6e
- Rename l (inner template variable for layouts) to __l e111032
- Update benchmarks page to include Squirrelly 1126440
- Add tests for layouts without includeFile b3ada67
- Format 0301578
- Add support for layouts β¨ 5c2fda2
- Rebuild b42a56d
- Add 'types' field' ce57b16