example/tmpl/inline_atom.template

Tue, 16 Jan 2018 17:24:27 +0000

author
Tuomo Valkonen <tuomov@liverpool.ac.uk>
date
Tue, 16 Jan 2018 17:24:27 +0000
changeset 12
5541f9577f27
parent 10
118ab361da29
permissions
-rw-r--r--

Bitbucket didn't like <...> around email using HTML, so use Unicode

<% for _, inlinepage in ipairs(inlinepages) do %>
  <entry>
    <title type="html"><%= inlinepage.meta.title %></title>
    <% if inlinepage.meta.author then %>
    <author>
      <name><%= inlinepage.meta.author %></name>
      <uri><%= inlinepage.meta.author_url %></uri>
    </author>
    <% end %>
    <link href="<%= inlinepage.location %>" rel="alternate" />
    <id><%= inlinepage.location %></id>
    <% if inlinepage.meta.modified_at then %>
    <updated><%= inlinepage.meta.modified_at %></updated>
    <% end %>
    <% if inlinepage.meta.created_at then %>
    <published><%= inlinepage.meta.created_at %></published>
    <% end %>
    <content type="xhtml">
    <div xmlns="http://www.w3.org/1999/xhtml"><%= inlinepage.content %></div>
    </content>
  </entry>
<% end %>

mercurial