Skip to content

Version 1.9.0

Compare
Choose a tag to compare
@nebrelbug nebrelbug released this 17 Sep 22:03

TL;DR

  • Layouts support! πŸš€ πŸ”₯ ✨ (see below)
  • Added types field to package.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

v1.8.0...v1.9.0