example/tmpl/atom.template

changeset 10
118ab361da29
equal deleted inserted replaced
9:751216807683 10:118ab361da29
1 <?xml version="1.0" encoding="utf-8" ?>
2 <%
3 require('plugin.inline')
4 require('time')
5 %>
6 <feed xmlns="http://www.w3.org/2005/Atom">
7 <title type="html"><%= page.meta.title %></title>
8 <subtitle type="html"><%= page.meta.description %></subtitle>
9 <author>
10 <name><%= page.meta.author %></name>
11 <uri><%= page.meta.author_url %></uri>
12 </author>
13
14 <% local feedurl = page.meta.site_url..page.destination %>
15 <link href="<%= page.meta.site_url %>" rel="alternate" type="text/xhtml" />
16 <link href="<%= feedurl %>" rel="self" type="application/atom+xml" />
17 <updated><%= time.now_iso() %></updated>
18 <id><%= page.meta.site_url %></id>
19
20 <%= plugin.inline.inline(env, {
21 pattern=page.meta.dependencies,
22 count=page.meta.count,
23 template='inline_atom.template',
24 absolute=page.meta.site_url,
25 })
26 %>
27 </feed>

mercurial