]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/blogs/list-posts.xml
Better support for rest parameters on URLs
[factor.git] / extra / webapps / blogs / list-posts.xml
1 <?xml version='1.0' ?>
2
3 <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
4
5         <t:title>Recent Posts</t:title>
6
7         <t:bind-each t:name="posts">
8
9                 <h2 class="post-title">
10                         <t:a t:href="$blogs/post" t:rest="id">
11                                 <t:label t:name="title" />
12                         </t:a>
13                 </h2>
14
15                 <p class="posting-body">
16                         <t:farkup t:name="content" />
17                 </p>
18
19                 <div class="posting-footer">
20                         Post by
21                         <t:a t:href="$blogs/by" t:rest="author">
22                                 <t:label t:name="author" />
23                         </t:a>
24                         on
25                         <t:label t:name="date" />
26                         |
27                         <t:a t:href="$blogs/post" t:rest="id">
28                                 <t:label t:name="comments" />
29                                 comments.
30                         </t:a>
31                 </div>
32
33         </t:bind-each>
34
35 </t:chloe>