Cleanup _.template documentation.

Former-commit-id: 7b45705bd8a4661dbf824912798ccba15e5ed989
This commit is contained in:
John-David Dalton
2012-08-17 04:05:50 -07:00
parent 2120f78bd7
commit b43684262f

View File

@@ -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>