Skip to content

Inner parameters

Compare
Choose a tag to compare
@curran curran released this 06 Oct 15:56
· 111 commits to main since this release

This version introduces support for parameters within strings.

For example, now the following will work:

var template = parse("Hello {{foo}}, how are you ?");
assert.deepEqual(template.parameters, [{ key: "foo" }]);
assert.equal(template({ foo: "john" }), "Hello john, how are you ?");

Many thanks to @t00f for this change (#1).