Created
May 7, 2014 13:00
-
-
Save marcusoftnet/4fcadcd809e26a78bd5d to your computer and use it in GitHub Desktop.
KoaMongoBlog list.html
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
{% extends 'layout.html' %} | |
{% block title %}Posts{% endblock %} | |
{% block content %} | |
<h1>Posts</h1> | |
<p>You have <strong>{{ posts.length }}</strong> posts!</p> | |
<p><a href="/post/new">Create a Post</a></p> | |
<ul id="posts"> | |
{% for post in posts %} | |
<li> | |
<h2>{{ post.title }}</h2> | |
<p><a href="/post/{{ post._id.toString() }}">Read post</a></p> | |
</li> | |
{% endfor %} | |
</ul> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment