v1.7.0

@sethkinast sethkinast released this Apr 18, 2015 · 11 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.

Downloads

v1.6.3

@sethkinast sethkinast released this Apr 13, 2015 · 31 commits to master since this release

Notable Changes

  • Fixes truth tests that were used with a context created from dust.makeBase in Dust <= 2.6.2 (most commonly seen if you use Adaro)

Downloads

v1.6.2

@sethkinast sethkinast released this Mar 26, 2015 · 40 commits to master since this release

Notable Changes

Downloads

v1.6.0

@sethkinast sethkinast released this Mar 5, 2015 · 60 commits to master since this release

The helpers can now be included as an AMD module alongside Dust 2.6.0 or newer.

New helpers:

  • {@any}, which executes if any truth test in a {@select} block passes.
  • {@none}, the opposite
  • {@first}, executes on the first iteration of a loop
  • {@last}... you get the idea

Removed helpers: https://github.com/linkedin/dustjs-helpers/wiki/Deprecated-Features

  • {@if} (use other truth test helpers or context helpers instead)
  • {@idx} (use {$idx}, a Dust core built-in, instead

Downloads

v1.5.0

@sethkinast sethkinast released this Dec 11, 2014 · 77 commits to master since this release

Downloads

v1.4.0

@sethkinast sethkinast released this Dec 11, 2014 · 88 commits to master since this release

  • #94 Encode opening brackets in contextDump helper (@prashn64)

Downloads