Created
December 17, 2017 10:04
-
-
Save hellojinjie/76626bfbb5ddf8950c69a3b324838e04 to your computer and use it in GitHub Desktop.
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
_.templateSettings = { | |
interpolate : /\{\{(.+?)\}\}/g, // print value: {{ value_name }} | |
evaluate : /\{%([\s\S]+?)%\}/g, // excute code: {% code_to_execute %} | |
escape : /\{%-([\s\S]+?)%\}/g // excape HTML: {%- <script> %} prints <script> | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment