Created
March 23, 2012 10:44
-
-
Save fiznool/2169509 to your computer and use it in GitHub Desktop.
Underscore Mustache-like templating
This file contains hidden or 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
// Change underscore's templating from ERB-style to Mustache-style | |
_.templateSettings = { | |
interpolate : /\{\{(.+?)\}\}/g | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment