From 1aae24b8318e155a4a0dea51b7e7369d12fdbdc1 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 4 Sep 2013 18:37:35 -0500 Subject: [PATCH] Cleanup `_.template` docs. [ci skip] --- lodash.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lodash.js b/lodash.js index aa74c4591..145bf6b6c 100644 --- a/lodash.js +++ b/lodash.js @@ -6046,8 +6046,8 @@ * // => 'hello curly' * * // using the internal `print` function in "evaluate" delimiters - * _.template('<% print("hello " + epithet); %>!', { 'epithet': 'stooge' }); - * // => 'hello stooge!' + * _.template('<% print("hello " + name); %>!', { 'name': 'larry' }); + * // => 'hello larry!' * * // using a custom template delimiters * _.templateSettings = { @@ -6164,9 +6164,7 @@ source + 'return __p\n}'; - // Use a sourceURL for easier debugging and wrap in a multi-line comment to - // avoid issues with Narwhal, IE conditional compilation, and the JS engine - // embedded in Adobe products. + // Use a sourceURL for easier debugging. // http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl var sourceURL = '\n/*\n//# sourceURL=' + (options.sourceURL || '/lodash/template/source[' + (templateCounter++) + ']') + '\n*/';