Skip to content

Instantly share code, notes, and snippets.

@mamoo
Created September 6, 2012 07:15
Show Gist options
  • Save mamoo/3652457 to your computer and use it in GitHub Desktop.
Save mamoo/3652457 to your computer and use it in GitHub Desktop.
Underscore.js template interpolation and evaluation change (replace <% %> with <@ @> to avoid conflicts with asp.net)
_.templateSettings = {
interpolate: /\<\@\=(.+?)\@\>/gim,
evaluate: /\<\@(.+?)\@\>/gim
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment