13 lines
297 B
Cheetah
13 lines
297 B
Cheetah
|
<?js
|
||
|
var data = obj;
|
||
|
var self = this;
|
||
|
|
||
|
data.forEach(function(example) {
|
||
|
if (example.caption) {
|
||
|
?>
|
||
|
<p class="code-caption"><?js= example.caption ?></p>
|
||
|
<?js } ?>
|
||
|
<pre class="prettyprint"><code><?js= self.htmlsafe(example.code) ?></code></pre>
|
||
|
<?js
|
||
|
});
|
||
|
?>
|