32 lines
888 B
HTML
32 lines
888 B
HTML
<h2>Comments</h2>
|
|
<pre><code>{{! This is a comment with <p>some markup</p> in it }}
|
|
{{! This is a comment }} {{ this_is_not }}</code></pre>
|
|
|
|
<h2>Variables</h2>
|
|
<pre><code><p>{{ text }}</p>
|
|
<h1>{{article.title}}</h1>
|
|
{{{ triple_stash_is_supported }}}
|
|
{{articles.[10].[#comments]}}</code></pre>
|
|
|
|
<h2>Strings, numbers and booleans</h2>
|
|
<pre><code>{{{link "See more..." story.url}}}
|
|
{{ true }}
|
|
{{ custom_helper 42 href="somepage.html" false }}</code></pre>
|
|
|
|
<h2>Block helpers</h2>
|
|
<pre><code><div class="body">
|
|
{{#bold}}{{body}}{{/bold}}
|
|
</div>
|
|
{{#with story}}
|
|
<div class="intro">{{{intro}}}</div>
|
|
<div class="body">{{{body}}}</div>
|
|
{{/with}}
|
|
<div class="{{#if test}}foo{{else}}bar{{/if}}"></div>
|
|
{{#list array}}
|
|
{{@index}}. {{title}}
|
|
{{/list}}
|
|
{{#block-with-hyphens args=yep}}
|
|
This should probably work...
|
|
{{/block-with-hyphens}}
|
|
</code></pre>
|