Skip to content

Instantly share code, notes, and snippets.

@jayhjkwon
Last active December 17, 2015 12:09
Show Gist options
  • Save jayhjkwon/5607477 to your computer and use it in GitHub Desktop.
Save jayhjkwon/5607477 to your computer and use it in GitHub Desktop.
Change underscore template delimiters from "{% %}" to "{{ }}"
_.templateSettings = {
interpolate : /\{\{\=(.+?)\}\}/g,
evaluate : /\{\{(.+?)\}\}/g
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment