Skip to content

Commit

Permalink
merging maw's doc patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Feb 28, 2011
1 parent ee9df31 commit 7859686
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1103,9 +1103,9 @@ <h2>Utility Functions</h2>
</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
Expand Down

0 comments on commit 7859686

Please sign in to comment.