example/tmpl/inline.template

changeset 10
118ab361da29
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/example/tmpl/inline.template	Tue Jan 16 17:13:40 2018 +0000
@@ -0,0 +1,9 @@
+<% for _, inlinepage in ipairs(inlinepages) do %>
+<div class="inlinepage">
+  <div class="posted-header">
+  <%= inlinepage.meta.created_at %>
+  </div>
+  <h2><a href="<%= inlinepage.location %>"><%= inlinepage.meta.title %></a></h2>
+  <%= inlinepage.content %>
+</div>
+<% end %>

mercurial