Cleanup _.template docs. [ci skip]

This commit is contained in:
John-David Dalton
2013-09-04 18:37:35 -05:00
parent b544b1c3d4
commit 1aae24b831

View File

@@ -6046,8 +6046,8 @@
* // => 'hello curly' * // => 'hello curly'
* *
* // using the internal `print` function in "evaluate" delimiters * // using the internal `print` function in "evaluate" delimiters
* _.template('<% print("hello " + epithet); %>!', { 'epithet': 'stooge' }); * _.template('<% print("hello " + name); %>!', { 'name': 'larry' });
* // => 'hello stooge!' * // => 'hello larry!'
* *
* // using a custom template delimiters * // using a custom template delimiters
* _.templateSettings = { * _.templateSettings = {
@@ -6164,9 +6164,7 @@
source + source +
'return __p\n}'; 'return __p\n}';
// Use a sourceURL for easier debugging and wrap in a multi-line comment to // Use a sourceURL for easier debugging.
// avoid issues with Narwhal, IE conditional compilation, and the JS engine
// embedded in Adobe products.
// http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl // http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
var sourceURL = '\n/*\n//# sourceURL=' + (options.sourceURL || '/lodash/template/source[' + (templateCounter++) + ']') + '\n*/'; var sourceURL = '\n/*\n//# sourceURL=' + (options.sourceURL || '/lodash/template/source[' + (templateCounter++) + ']') + '\n*/';