From b43684262f17c02086b5edc1aac7c5fcb2829f26 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 17 Aug 2012 04:05:50 -0700 Subject: [PATCH] Cleanup `_.template` documentation. Former-commit-id: 7b45705bd8a4661dbf824912798ccba15e5ed989 --- lodash.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index b1de0d651..988141a95 100644 --- a/lodash.js +++ b/lodash.js @@ -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 *