linkedin/dustjs — pull request #20 by neuronix (2012-05-01 15:05:18+00:00)
Title: Adding a generic parameter evaluation tool

As discussed in the issue : https://github.com/linkedin/dustjs/issues/19

Added dust.resolve as a generic solution to parsing and evaluating parameters in helpers. Renders {name} as dust normally does and evaluates {{code}} as javascript (using Function).

@if helper now uses dust.resolve to parse the cond parameter. Similar performance in Chrome, huge improvement in Firefox.

First pull request ! Hope i'm doing it right :)