Skip to content

Instantly share code, notes, and snippets.

@darkone23
Created September 20, 2012 01:51
Show Gist options
  • Save darkone23/3753522 to your computer and use it in GitHub Desktop.
Save darkone23/3753522 to your computer and use it in GitHub Desktop.
Mustache style tags in underscore
_.templateSettings = {
evaluate : /\{\%([\s\S]+?)\%\}/g, // {% eval(js); %}
interpolate : /\{\{([\s\S]+?)\}\}/g // {{ interpolate }}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment