examples.tmpl 297 B

12345678910111213
  1. <?js
  2. var data = obj;
  3. var self = this;
  4. data.forEach(function(example) {
  5. if (example.caption) {
  6. ?>
  7. <p class="code-caption"><?js= example.caption ?></p>
  8. <?js } ?>
  9. <pre class="prettyprint"><code><?js= self.htmlsafe(example.code) ?></code></pre>
  10. <?js
  11. });
  12. ?>