Skip to content

Instantly share code, notes, and snippets.

@arunoda
Created March 18, 2015 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arunoda/26c77af787a50be2b73d to your computer and use it in GitHub Desktop.
Save arunoda/26c77af787a50be2b73d to your computer and use it in GitHub Desktop.
<template name="page">
<div class="page">
<div class="post">
{{#if isReady "currentPost"}}
<!-- render the blog post -->
{{else}}
Loading...
{{/if}}
</div>
<div class="categories">
{{#if isReady}}
<!-- render categories after all subscriptions are ready -->
{{/if}}
<!-- No need to show some loading message -->
</div>
</div>
<div class="comments">
<!-- Render comments as they came -->
{{#each getComments}}
<!-- render single comment -->
{{/each}}
</div>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment