v3.5.0
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