mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37:49 +00:00
making interpolate/evaluate more clear.
This commit is contained in:
@@ -1111,7 +1111,9 @@ compiled({epithet: "stooge"});
|
||||
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.
|
||||
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.
|
||||
If no <b>evaluate</b> regex is provided, your templates will only be
|
||||
capable of interpolating values.
|
||||
For example, to perform
|
||||
<a href="http://github.com/janl/mustache.js#readme">Mustache.js</a>
|
||||
style templating:
|
||||
|
||||
Reference in New Issue
Block a user