Skip to content

Instantly share code, notes, and snippets.

@SachaG
Created September 9, 2012 03:23
Show Gist options
  • Save SachaG/3682384 to your computer and use it in GitHub Desktop.
Save SachaG/3682384 to your computer and use it in GitHub Desktop.
<template name="post_page">
<div class="single-post grid">
{{#with post}}
{{> post_item}}
{{/with}}
{{#if show_comment_form}}
<div class="comment-new">
<form>
<div class="comment-field">
<textarea id="comment" rows="3" autofocus="autofocus"></textarea>
</div>
<div class="comment-submit">
<input type="submit" class="button" value="Add Comment" />
</div>
</form>
</div>
{{/if}}
{{#if has_comments}}
<ul class="comments">
{{#each child_comments}}
{{> comment_item}}
{{/each}}
</ul>
{{else}}
<p>No comments.</p>
{{/if}}
</div>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment