Skip to content

Commit 7d7b1c3

Browse files
committed
more docs for template_function: off
1 parent 0a2e1a9 commit 7d7b1c3

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ <h2 id="jst">JavaScript Templates</h2>
624624

625625
<pre>
626626
JST.license({name : "Moe", birthplace : "Brooklyn", bio : "Moe was always..."});</pre>
627-
627+
628628
<p>
629629
Since <b>0.5.0</b>, templates should be included in the appropriate
630630
<tt>javascripts</tt> package. Here's an example of an <tt>assets.yml</tt>
@@ -652,12 +652,14 @@ <h2 id="jst">JavaScript Templates</h2>
652652

653653
<p>
654654
To use <a href="http://documentcloud.github.com/underscore/">Underscore.js</a>
655-
templates, set <b>template_function</b> to "<b>_.template</b>".<br />
655+
templates, set <b>template_function</b> to <tt>_.template</tt>.<br />
656656
To use <a href="http://www.prototypejs.org/">Prototype</a> templates, set
657-
it to "<b>new Template</b>".<br />To use
657+
it to <tt>new Template</tt>.<br />To use
658658
<a href="http://github.com/janl/mustache.js">Mustache.js</a> templates,
659659
you'll need
660-
<a href="http://gist.github.com/234982">a little extra setup</a>.
660+
<a href="http://gist.github.com/234982">a little extra setup</a>.<br />
661+
If you'd rather leave your template strings as strings, and compile them later,
662+
set <b>template_function</b> to <tt>off</tt>.
661663
</p>
662664

663665
<p>

0 commit comments

Comments
 (0)