mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Fix typo in _.template docs.
This commit is contained in:
@@ -6076,8 +6076,8 @@
|
|||||||
* // => 'hello mustache!'
|
* // => 'hello mustache!'
|
||||||
*
|
*
|
||||||
* // using the `imports` option to import jQuery
|
* // using the `imports` option to import jQuery
|
||||||
* var list = '<% $.each(people, function(name) { %><li><%= name %></li><% }); %>';
|
* var list = '<% $.each(people, function(name) { %><li><%- name %></li><% }); %>';
|
||||||
* _.template(list, { 'people': ['moe', 'larry'] }, { 'imports': { '$': jQuery });
|
* _.template(list, { 'people': ['moe', 'larry'] }, { 'imports': { '$': jQuery } });
|
||||||
* // => '<li>moe</li><li>larry</li>'
|
* // => '<li>moe</li><li>larry</li>'
|
||||||
*
|
*
|
||||||
* // using the `sourceURL` option to specify a custom sourceURL for the template
|
* // using the `sourceURL` option to specify a custom sourceURL for the template
|
||||||
|
|||||||
Reference in New Issue
Block a user