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