-
-
Save arunoda/26c77af787a50be2b73d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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