Permalink
Browse files

updated

  • Loading branch information...
defunkt committed Mar 18, 2010
1 parent 99b3065 commit 5c715dc1128a137cc4ef7102ea5b46ef3f47cfb9
Showing with 12 additions and 5 deletions.
  1. +3 −1 mustache.1.html
  2. +9 −4 mustache.5.html
View
@@ -2,7 +2,7 @@
<html>
<head>
<meta http-equiv='content-type' value='text/html;charset=utf8'>
- <meta name='generator' value='Ron/v0.3'>
+ <meta name='generator' value='Ronn/v0.4.1'>
<title>mustache(1) -- Mustache processor</title>
<style type='text/css'>
body {margin:0}
@@ -64,6 +64,7 @@ <h1 class='man-title'>mustache(1)</h1>
<h2 id='NAME'>NAME</h2>
<p><code>mustache</code> -- Mustache processor</p>
+
<h2>SYNOPSIS</h2>
<p><code>cat data.yml template.mustache | mustache</code></p>
@@ -157,6 +158,7 @@ <h2>SEE ALSO</h2>
<p>mustache(5), mustache(7), gem(1),
<a href="http://defunkt.github.com/mustache/">http://defunkt.github.com/mustache/</a></p>
+
<ol class='foot man'>
<li class='tl'>DEFUNKT</li>
<li class='tc'>March 2010</li>
View
@@ -2,7 +2,7 @@
<html>
<head>
<meta http-equiv='content-type' value='text/html;charset=utf8'>
- <meta name='generator' value='Ron/v0.3'>
+ <meta name='generator' value='Ronn/v0.4.1'>
<title>mustache(5) -- Logic-less templates.</title>
<style type='text/css'>
body {margin:0}
@@ -64,6 +64,7 @@ <h1 class='man-title'>mustache(5)</h1>
<h2 id='NAME'>NAME</h2>
<p><code>mustache</code> -- Logic-less templates.</p>
+
<h2>SYNOPSIS</h2>
<p>A typical Mustache template:</p>
@@ -117,6 +118,9 @@ <h3>Variables</h3>
<p>All variables are HTML escaped by default. If you want to return
unescaped HTML, use the triple mustache: <code>{{{name}}}</code>.</p>
+<p>You can also use <code>&amp;</code> to unescape a variable: <code>{{&amp; name}}</code>. This may be
+useful when changing delimiters (see "Set Delimter" below).</p>
+
<p>By default a variable "miss" returns an empty string. This can usually
be configured in your Mustache library.</p>
@@ -261,9 +265,9 @@ <h3>Set Delimiter</h3>
<p>Consider the following contrived example:</p>
<pre><code>* {{ default_tags }}
-{{=&lt;% %&gt;=}}
-* &lt;% erb_style_tags %&gt;
-&lt;%={{ }}=%&gt;
+{{=&lt;% %>=}}
+* &lt;% erb_style_tags %>
+&lt;%={{ }}=%>
* {{ default_tags_again }}
</code></pre>
@@ -289,6 +293,7 @@ <h2>SEE ALSO</h2>
<p>mustache(1), mustache(7), gem(1),
<a href="http://defunkt.github.com/mustache/">http://defunkt.github.com/mustache/</a></p>
+
<ol class='foot man'>
<li class='tl'>DEFUNKT</li>
<li class='tc'>March 2010</li>

0 comments on commit 5c715dc

Please sign in to comment.