Debian Codegraph @

examples/prism-handlebars.html

raw symbols SCIP
1 <h2>Comments</h2>
2 <pre><code>{{! This is a comment with &lt;p>some markup&lt;/p> in it }}
3 {{! This is a comment }} {{ this_is_not }}</code></pre>
4
5 <h2>Variables</h2>
6 <pre><code>&lt;p>{{ text }}&lt;/p>
7 &lt;h1>{{article.title}}&lt;/h1>
8 {{{ triple_stash_is_supported }}}
9 {{articles.[10].[#comments]}}</code></pre>
10
11 <h2>Strings, numbers and booleans</h2>
12 <pre><code>{{{link "See more..." story.url}}}
13 {{ true }}
14 {{ custom_helper 42 href="somepage.html" false }}</code></pre>
15
16 <h2>Block helpers</h2>
17 <pre><code>&lt;div class="body">
18 {{#bold}}{{body}}{{/bold}}
19 &lt;/div>
20 {{#with story}}
21 &lt;div class="intro">{{{intro}}}&lt;/div>
22 &lt;div class="body">{{{body}}}&lt;/div>
23 {{/with}}
24 &lt;div class="{{#if test}}foo{{else}}bar{{/if}}">&lt;/div>
25 {{#list array}}
26 {{@index}}. {{title}}
27 {{/list}}
28 {{#block-with-hyphens args=yep}}
29 This should probably work...
30 {{/block-with-hyphens}}
31 </code></pre>