github eta-dev/eta v1.9.0
Version 1.9.0

latest releases: v3.4.0, v3.3.0, v3.2.0...
3 years ago

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

Don't miss a new eta release

NewReleases is sending notifications on new releases.