man/mustache.5.html in mustache-0.99.4 vs man/mustache.5.html in mustache-0.99.5

- old
+ new

@@ -1,74 +1,81 @@ <!DOCTYPE html> <html> <head> <meta http-equiv='content-type' value='text/html;charset=utf8'> - <meta name='generator' value='Ronn/v0.5'> - <title>mustache(5) -- Logic-less templates.</title> - <style type='text/css'> - body {margin:0} - #man, #man code, #man pre, #man tt, #man kbd, #man samp { - font-family:consolas,monospace; - font-size:16px; - line-height:1.3; - color:#343331; - background:#fff; } - #man { max-width:89ex; text-align:justify; margin:0 25px 25px 25px } - #man h1, #man h2, #man h3 { color:#232221;clear:left } - #man h1 { font-size:28px; margin:15px 0 30px 0; text-align:center } - #man h2 { font-size:18px; margin-bottom:0; margin-top:10px; line-height:1.3; } - #man h3 { font-size:16px; margin:0 0 0 4ex; } - #man p, #man ul, #man ol, #man dl, #man pre { margin:0 0 18px 0; } - #man pre { - color:#333231; - background:#edeceb; - padding:5px 7px; - margin:0px 0 20px 0; - border-left:2ex solid #ddd} - #man pre + h2, #man pre + h3 { - margin-top:22px; - } - #man h2 + pre, #man h3 + pre { - margin-top:5px; - } - #man > p, #man > ul, #man > ol, #man > dl, #man > pre { margin-left:8ex; } - #man dt { margin:0; clear:left } - #man dt.flush { float:left; width:8ex } - #man dd { margin:0 0 0 9ex } - #man code, #man strong, #man b { font-weight:bold; color:#131211; } - #man pre code { font-weight:normal; color:#232221; background:inherit } - #man em, var, u { - font-style:normal; color:#333231; border-bottom:1px solid #999; } - #man h1.man-title { display:none; } - #man ol.man, #man ol.man li { margin:2px 0 10px 0; padding:0; - float:left; width:33%; list-style-type:none; - text-transform:uppercase; font-size:18px; color:#999; - letter-spacing:1px;} - #man ol.man { width:100%; } - #man ol.man li.tl { text-align:left } - #man ol.man li.tc { text-align:center;letter-spacing:4px } - #man ol.man li.tr { text-align:right } - #man ol.man a { color:#999 } - #man ol.man a:hover { color:#333231 } + <meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'> + <title>mustache(5) - Logic-less templates.</title> + <style type='text/css' media='all'> + /* style: man */ + body#manpage {margin:0} + .mp {max-width:100ex;padding:0 9ex 1ex 4ex} + .mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0} + .mp h2 {margin:10px 0 0 0} + .mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex} + .mp h3 {margin:0 0 0 4ex} + .mp dt {margin:0;clear:left} + .mp dt.flush {float:left;width:8ex} + .mp dd {margin:0 0 0 9ex} + .mp h1,.mp h2,.mp h3,.mp h4 {clear:left} + .mp pre {margin-bottom:20px} + .mp pre+h2,.mp pre+h3 {margin-top:22px} + .mp h2+pre,.mp h3+pre {margin-top:5px} + .mp img {display:block;margin:auto} + .mp h1.man-title {display:none} + .mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143} + .mp h2 {font-size:16px;line-height:1.25} + .mp h1 {font-size:20px;line-height:2} + .mp {text-align:justify;background:#fff} + .mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211} + .mp h1,.mp h2,.mp h3,.mp h4 {color:#030201} + .mp u {text-decoration:underline} + .mp code,.mp strong,.mp b {font-weight:bold;color:#131211} + .mp em,.mp var {font-style:italic;color:#232221;text-decoration:none} + .mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff} + .mp b.man-ref {font-weight:normal;color:#434241} + .mp pre {padding:0 4ex} + .mp pre code {font-weight:normal;color:#434241} + .mp h2+pre,h3+pre {padding-left:0} + ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px} + ol.man-decor {width:100%} + ol.man-decor li.tl {text-align:left} + ol.man-decor li.tc {text-align:center;letter-spacing:4px} + ol.man-decor li.tr {text-align:right;float:right} </style> </head> -<body> -<div id='man'> +<!-- + The following styles are deprecated and will be removed at some point: + div#man, div#man ol.man, div#man ol.head, div#man ol.man. -<h1 class='man-title'>mustache(5)</h1> + The .man-page, .man-decor, .man-head, .man-foot, .man-title, and + .man-navigation should be used instead. +--> +<body id='manpage'> + <div class='mp' id='man'> -<ol class='head man'> - <li class='tl'>mustache(5)</li> - <li class='tc'>Mustache Manual</li> - <li class='tr'>mustache(5)</li> -</ol> + <div class='man-navigation' style='display:none'> + <a href="#NAME">NAME</a> + <a href="#SYNOPSIS">SYNOPSIS</a> + <a href="#DESCRIPTION">DESCRIPTION</a> + <a href="#TAG-TYPES">TAG TYPES</a> + <a href="#COPYRIGHT">COPYRIGHT</a> + <a href="#SEE-ALSO">SEE ALSO</a> + </div> -<h2 id='NAME'>NAME</h2> -<p><code>mustache</code> -- Logic-less templates.</p> + <ol class='man-decor man-head man head'> + <li class='tl'>mustache(5)</li> + <li class='tc'>Mustache Manual</li> + <li class='tr'>mustache(5)</li> + </ol> -<h2>SYNOPSIS</h2> + <h2 id="NAME">NAME</h2> +<p class="man-name"> + <code>mustache</code> - <span class="man-whatis">Logic-less templates.</span> +</p> +<h2 id="SYNOPSIS">SYNOPSIS</h2> + <p>A typical Mustache template:</p> <pre><code>Hello {{name}} You have just won {{value}} dollars! {{#in_ca}} @@ -91,28 +98,28 @@ <pre><code>Hello Chris You have just won 10000 dollars! Well, 6000.0 dollars, after taxes. </code></pre> -<h2>DESCRIPTION</h2> +<h2 id="DESCRIPTION">DESCRIPTION</h2> <p>Mustache can be used for HTML, config files, source code - anything. It works by expanding tags in a template using values provided in a hash or object.</p> <p>We call it "logic-less" because there are no if statements, else clauses, or for loops. Instead there are only tags. Some tags are replaced with a value, some nothing, and others a series of values. This document explains the different types of Mustache tags.</p> -<h2>TAG TYPES</h2> +<h2 id="TAG-TYPES">TAG TYPES</h2> <p>Tags are indicated by the double mustaches. <code>{{person}}</code> is a tag, as is <code>{{#person}}</code>. In both examples, we'd refer to <code>person</code> as the key or tag key. Let's talk about the different types of tags.</p> -<h3>Variables</h3> +<h3 id="Variables">Variables</h3> <p>The most basic tag type is the variable. A <code>{{name}}</code> tag in a basic template will try to find the <code>name</code> key in the current context. If there is no <code>name</code> key, nothing will be rendered.</p> @@ -148,11 +155,11 @@ * * &amp;lt;b&amp;gt;GitHub&amp;lt;/b&amp;gt; * &lt;b&gt;GitHub&lt;/b&gt; </code></pre> -<h3>Sections</h3> +<h3 id="Sections">Sections</h3> <p>Sections render blocks of text one or more times, depending on the value of the key in the current context.</p> <p>A section begins with a pound and ends with a slash. That is, @@ -274,11 +281,11 @@ <p>Output:</p> <pre><code>Hi Jon! </code></pre> -<h3>Inverted Sections</h3> +<h3 id="Inverted-Sections">Inverted Sections</h3> <p>An inverted section begins with a caret (hat) and ends with a slash. That is <code>{{^person}}</code> begins a "person" inverted section while <code>{{/person}}</code> ends it.</p> @@ -307,11 +314,11 @@ <p>Output:</p> <pre><code>No repos :( </code></pre> -<h3>Comments</h3> +<h3 id="Comments">Comments</h3> <p>Comments begin with a bang and are ignored. The following template:</p> <pre><code>&lt;h1&gt;Today{{! ignore me }}.&lt;/h1&gt; </code></pre> @@ -321,11 +328,11 @@ <pre><code>&lt;h1&gt;Today.&lt;/h1&gt; </code></pre> <p>Comments may contain newlines.</p> -<h3>Partials</h3> +<h3 id="Partials">Partials</h3> <p>Partials begin with a greater than sign, like <code>{{&gt; box}}</code>.</p> <p>Partials are rendered at runtime (as opposed to compile time), so recursive partials are possible. Just avoid infinite loops.</p> @@ -365,11 +372,11 @@ {{#names}} &lt;strong&gt;{{name}}&lt;/strong&gt; {{/names}} </code></pre> -<h3>Set Delimiter</h3> +<h3 id="Set-Delimiter">Set Delimiter</h3> <p>Set Delimiter tags start with an equal sign and change the tag delimiters from <code>{{</code> and <code>}}</code> to custom strings.</p> <p>Consider the following contrived example:</p> @@ -390,26 +397,26 @@ double-braces may occur in the text and are awkward to use for markup."</p> <p>Custom delimiters may not contain whitespace or the equals sign.</p> -<h2>COPYRIGHT</h2> +<h2 id="COPYRIGHT">COPYRIGHT</h2> <p>Mustache is Copyright (C) 2009 Chris Wanstrath</p> <p>Original CTemplate by Google</p> -<h2>SEE ALSO</h2> +<h2 id="SEE-ALSO">SEE ALSO</h2> -<p>mustache(1), mustache(7), -<a href="http://mustache.github.com/">http://mustache.github.com/</a></p> +<p><a href="mustache.1.ron.html" class="man-ref">mustache<span class="s">(1)</span></a>, +<a href="http://mustache.github.com/" data-bare-link="true">http://mustache.github.com/</a></p> -<ol class='foot man'> - <li class='tl'>DEFUNKT</li> - <li class='tc'>May 2010</li> - <li class='tr'>mustache(5)</li> -</ol> + <ol class='man-decor man-foot man foot'> + <li class='tl'>DEFUNKT</li> + <li class='tc'>August 2011</li> + <li class='tr'>mustache(5)</li> + </ol> -</div> + </div> </body> </html>