initi.doc/templates/initi/tmpl/examples.tmpl

14 lines
326 B
Cheetah
Raw Normal View History

2018-09-18 12:17:34 +00:00
<?js
var data = obj;
var self = this;
data.forEach(function(example) {
var result = self.htmlsafe(example.code);
2018-09-18 12:17:34 +00:00
if (example.caption) {
?>
<p class="code-caption"><?js= example.caption ?></p>
<?js } ?>
<pre class="prettyprint"><code><?js= result ?></code></pre>
2018-09-18 12:17:34 +00:00
<?js
});
?>