coolony / kiwi

Simple yet powerful asynchronous JavaScript template engine based on jQuery Template syntax, usable server-side or client-side.
MIT License
41 stars 6 forks source link

Set a variable #19

Open moshest opened 12 years ago

moshest commented 12 years ago

I miss the ability to set a variable as is. for example:

{{set $oldValue null}} {{each entities}} {if $oldValue && $oldValue.someTerm == true}} Do Something {{/if}} {{set $oldValue $value}} {{/each}}