Skip to content

Instantly share code, notes, and snippets.

@dburles
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dburles/1a38bddf338004a9632e to your computer and use it in GitHub Desktop.
Save dburles/1a38bddf338004a9632e to your computer and use it in GitHub Desktop.
UI.registerHelper('sourceCode', function() {
return Template.sourceCode;
});
<template name="sourceCode">
<pre><code data-language="html">
{{> UI.contentBlock}}
</code></pre>
</template>
{{#sourceCode}}
<template name="books">
<input type="text" placeholder="Search..." value="{{booksSearchQuery}}">
{{#if searchResults.count}}
<ul>
{{#each searchResults}}
<li>{{name}}</li>
{{/each}}
</ul>
{{/if}}
</template>
{{/sourceCode}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment