askrobots / dbbasic-examples
Public
Example DBBasic apps (an API, a blog and a microblog) and a template for new DBBasic modules.
danq9
Add official module template for creating DBBasic packages
17cf88a
1 year, 1 month ago
History
index.html · 479 bytes · 19 lines
| 1 | {% extends "base.html" %} |
| 2 | |
| 3 | {% block title %}Blog{% endblock %} |
| 4 | |
| 5 | {% block content %} |
| 6 | <h1>Blog</h1> |
| 7 | <a href="/new" class="button">New Post</a> |
| 8 | |
| 9 | {% if posts %} |
| 10 | {% for post in posts %} |
| 11 | <div class="post"> |
| 12 | <h2><a href="/post/{{ post.id }}">{{ post.title }}</a></h2> |
| 13 | <p class="meta">By {{ post.author }} - {{ post.created }}</p> |
| 14 | </div> |
| 15 | {% endfor %} |
| 16 | {% else %} |
| 17 | <p>No posts yet. <a href="/new">Write your first post!</a></p> |
| 18 | {% endif %} |
| 19 | {% endblock %} |