mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Cleanup _.template documentation.
Former-commit-id: 7b45705bd8a4661dbf824912798ccba15e5ed989
This commit is contained in:
@@ -3759,9 +3759,9 @@
|
|||||||
* template({ 'name': 'Mustache' });
|
* template({ 'name': 'Mustache' });
|
||||||
* // => 'Hello Mustache!'
|
* // => 'Hello Mustache!'
|
||||||
*
|
*
|
||||||
* // using the `variable` option
|
* // specify the `variable` option to avoid using a with-statement during compilation
|
||||||
* _.template('<%= data.hasWith %>', { 'hasWith': 'no' }, { 'variable': 'data' });
|
* _.template('Using a with-statement: <%= data.answer %>', { 'answer': 'no' }, { 'variable': 'data' });
|
||||||
* // => 'no'
|
* // => 'Using a with-statement: no'
|
||||||
*
|
*
|
||||||
* // using the `source` property
|
* // using the `source` property
|
||||||
* <script>
|
* <script>
|
||||||
|
|||||||
Reference in New Issue
Block a user