node-query/node_modules/jsdoc/templates/default/tmpl/examples.tmpl

13 lines
297 B
Cheetah
Raw Normal View History

2014-10-20 16:56:45 -04:00
<?js
2014-10-22 10:11:40 -04:00
var data = obj;
var self = this;
2014-10-20 16:56:45 -04:00
data.forEach(function(example) {
if (example.caption) {
?>
<p class="code-caption"><?js= example.caption ?></p>
<?js } ?>
2014-10-22 10:11:40 -04:00
<pre class="prettyprint"><code><?js= self.htmlsafe(example.code) ?></code></pre>
2014-10-20 16:56:45 -04:00
<?js
});
?>