mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
making interpolate/evaluate more clear.
This commit is contained in:
@@ -1112,6 +1112,8 @@ compiled({epithet: "stooge"});
|
|||||||
template settings to use different symbols to set off interpolated code.
|
template settings to use different symbols to set off interpolated code.
|
||||||
Define 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.
|
||||||
|
If no <b>evaluate</b> regex is provided, your templates will only be
|
||||||
|
capable of interpolating values.
|
||||||
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>
|
||||||
style templating:
|
style templating:
|
||||||
|
|||||||
Reference in New Issue
Block a user