Skip to content

Instantly share code, notes, and snippets.

@Sinetheta
Created May 10, 2013 20:10
Show Gist options
  • Save Sinetheta/5557047 to your computer and use it in GitHub Desktop.
Save Sinetheta/5557047 to your computer and use it in GitHub Desktop.
Underscore templates with moustaches
_.templateSettings = {
evaluate : /\{\[([\s\S]+?)\]\}/g,
interpolate : /\{\{([\s\S]+?)\}\}/g
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment