merging maw's doc patch.

This commit is contained in:
Jeremy Ashkenas
2011-02-28 10:44:45 -05:00
parent ee9df31b17
commit 78596866ab

View File

@@ -1103,9 +1103,9 @@ _.template(list, {people : ['moe', 'curly', 'larry']});
</p>
<pre>
var compiled = _.template("<% print('Hello ' + epithet); %>");
compiled({epithet: "dude"});
=&gt; "Hello dude."</pre>
var compiled = _.template("&lt;% print('Hello ' + epithet); %&gt;");
compiled({epithet: "stooge"});
=&gt; "Hello stooge."</pre>
<p>
If ERB-style delimiters aren't your cup of tea, you can change Underscore's