/
githubmirror
/
CS-Notes
Обзор
Документация
Войти
/
githubmirror
/
CS-Notes
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_style/prism-master/examples/prism-soy.html
36 строк
909 B
CyC2018
use prism-tomorrow.css
19 дек 2018, 09:09
19 дек 2018, 09:09
e9e604e
Код
Авторство
О чём код?
<h2>Comments</h2> <pre><code>/* Multi-line comment */ // This is a comment with <p>some markup</p> in it</code></pre> <h2>Variable</h2> <pre><code>{$name} {$folders[0]['name']} {$aaa?.bbb.ccc?[0]}</code></pre> <h2>Commands</h2> <pre><code>{template .helloNames} // Greet the person. {call .helloName data="all" /}<br> // Greet the additional people. {foreach $additionalName in $additionalNames} {call .helloName} {param name: $additionalName /} {/call} {if not isLast($additionalName)} <br> // break after every line except the last {/if} {ifempty} No additional people to greet. {/foreach} {/template}</code></pre> <h2>Functions and print directives</h2> <pre><code>{if length($items) > 5} {$foo|changeNewlineToBr} {$bar|truncate: 4, false}</code></pre> <h2>Literal section</h2> <pre><code>{literal} This is not a {$variable} {/literal}</code></pre>