Skip to content

v3.5.0

Compare
Choose a tag to compare
@cossssmin cossssmin released this 24 Apr 14:09
· 1024 commits to master since this release

New features

Use Expressions in Layouts

This release reintroduces the (fixed) functionality from v3.2.0 which allows using Expressions in Layouts.

You can now dynamically extend a Layout like this:

<extends src="src/layouts/{{ page.env === 'production' ? 'production' : 'development' }}.html">
  ...
</extends>

You can now also use <if> / <else> statements in a Layout:

<if condition="page.env === 'production'">
  <!-- Layout HTML boilerplate for production -->
</if>
<else>
  <!-- Layout HTML boilerplate for all other build commands -->
</else>
  • feat: expressions in layouts b800a99

v3.4.2...v3.5.0