Is it possible to define a new variable within a jquery template? I read the official jquery template docs but could not find anything on this. I tried something like {{ v
{{ v
You can extend jquery template with eval tag
$.extend($.tmpl.tag, { "eval": { open: "$1;"} });
and use
{{eval var xxx = 123}} {{eval xxx += 23}}