Skip to content

v1.7.0

Latest
Compare
Choose a tag to compare
@sethkinast sethkinast released this 18 Apr 00:35
· 17 commits to master since this release

Notable Changes

{@select}

New behavior:

  • key is no longer required. If it is not provided, key must be present on individual truth tests inside the select block.
  • type can be attached to the select to apply it to all truth tests inside (and a truth test can override the type)
  • If a provided key is undefined and a type is provided, the undefined value will be cast to type.

{@default}

{@default} has been removed after being deprecated in 1.6.

You can replace {@default} with {@none} in your templates without any change in functionality (but you can have more than one {@none} block, and only one {@default} was allowed.)

{@size}

{@size} will evaluate Dust template strings and provide the size of the result.

Your name has {@size key="{name}" /} letters.

{@math}

{@any} and {@none} now work inside {@math} blocks.