mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Add _.template note for disabling the ES template literal delimiter. [ci skip]
This commit is contained in:
@@ -14460,7 +14460,8 @@
|
|||||||
* compiled({ 'user': 'barney' });
|
* compiled({ 'user': 'barney' });
|
||||||
* // => 'hello barney!'
|
* // => 'hello barney!'
|
||||||
*
|
*
|
||||||
* // Use the ES delimiter as an alternative to the default "interpolate" delimiter.
|
* // Use the ES template literal delimiter as an "interpolate" delimiter.
|
||||||
|
* // Disable support by replacing the "interpolate" delimiter.
|
||||||
* var compiled = _.template('hello ${ user }!');
|
* var compiled = _.template('hello ${ user }!');
|
||||||
* compiled({ 'user': 'pebbles' });
|
* compiled({ 'user': 'pebbles' });
|
||||||
* // => 'hello pebbles!'
|
* // => 'hello pebbles!'
|
||||||
|
|||||||
Reference in New Issue
Block a user