Create a gist now

Instantly share code, notes, and snippets.

@arunoda /page.html Secret
Created Mar 18, 2015

<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