Skip to content

Version 1.4.0

Compare
Choose a tag to compare
@nebrelbug nebrelbug released this 06 Sep 03:39

TL;DR

The most significant feature of this release is a new configure() function that modifies Eta's base ("global") configuration. It's called like Eta.configure({tags: ["{{", "}}"]}).

Another significant change was the decision to rename defaultConfig to config. The name defaultConfig was originally chosen when I had plans to make Eta support multiple "environments", like Nunjucks. Eventually I decided this would cause unneeded complexity, but I didn't change the name. This change should not be breaking; we re-export config as defaultConfig for backwards compatibility. In the future, use of defaultConfig will be discouraged and we'll update the docs to reflect that.

Finally, we included a fix to renderFile.

Notable changes (recap)

  • Create new configure() function
  • Rename defaultConfig to config
  • Prevent renderFile from erroring if the data argument is undefined or null; issue originally filed in Squirrelly by @futurelucas4502, see squirrellyjs/squirrelly#201.

Commits

  • Merge pull request #13 from eta-dev/simple-config dce660b
  • Format 60d5805
  • Make defaultConfig an alias of config instead of the opposite daa8b76
  • Sort package.json scripts 18deacb
  • Add new config utilities to browser.ts 01241a4
  • Merge branch 'master' into simple-config 88749fd
  • Replace params named env w/ params named config 0f24916
  • Add eta.configure() command, alias defaultConfig to config e51e02e
  • Update README to have centered title 3754716
  • Avoid error if data is undefined or null f9417df
  • Add style to h1 so it centers 62afaa0

v1.3.0...v1.4.0