Created
February 27, 2012 09:08
-
-
Save ruudud/1922646 to your computer and use it in GitHub Desktop.
Underscore templates with Django syntax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ovveride Underscore.js' template format | |
_.templateSettings = { | |
evaluate: /\{%([\s\S]+?)%\}/g, | |
interpolate: /\{\{(.+?)\}\}/g | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for posting this here.