Skip to content

Instantly share code, notes, and snippets.

@ruudud
Created February 27, 2012 09:08
Show Gist options
  • Save ruudud/1922646 to your computer and use it in GitHub Desktop.
Save ruudud/1922646 to your computer and use it in GitHub Desktop.
Underscore templates with Django syntax
// Ovveride Underscore.js' template format
_.templateSettings = {
evaluate: /\{%([\s\S]+?)%\}/g,
interpolate: /\{\{(.+?)\}\}/g
};
@halfnibble
Copy link

Thank you for posting this here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment