This commit is contained in:
Jeremy Ashkenas
2010-11-01 08:28:21 -04:00

View File

@@ -1070,7 +1070,7 @@ _.template(list, {people : ['moe', 'curly', 'larry']});
<p> <p>
If ERB-style delimiters aren't your cup of tea, you can change Underscore's If ERB-style delimiters aren't your cup of tea, you can change Underscore's
template settings to use different symbols to set off interpolated code. template settings to use different symbols to set off interpolated code.
Define and an <b>interpolate</b> regex, and an (optional) <b>evaluate</b> regex Define an <b>interpolate</b> regex, and an (optional) <b>evaluate</b> regex
to match expressions that should be inserted and evaluated, respectively. to match expressions that should be inserted and evaluated, respectively.
For example, to perform For example, to perform
<a href="http://github.com/janl/mustache.js#readme">Mustache.js</a> <a href="http://github.com/janl/mustache.js#readme">Mustache.js</a>