<{system cat src/pages/parts/header.etlua}> <% local api = require("hooks") %> <% if owner then -%>
<% for _, spec in ipairs(api.get.page_owner(getfenv(1))) do %>
<% for key, value in pairs(spec.fields) do %> <% end %>
<% end %>
<% end -%>

<%- title %>

<% if isanon or author == nil then -%> By Anonymous <% else -%> By <%= author %> <% end -%>

<%- text %>

<%= views %> Hits, <%= #comments %> Comments

<% for _, spec in ipairs(api.get.page_reader(getfenv(1))) do %>
<% for key, value in pairs(spec.fields) do %> <% end %>
<% end %>
<% if unlisted then %> <% end %> <% if iam then %> <% else %> <% end %>
<% if comments and #comments == 0 then %>

No comments yet

<% else %>
<% for _,comment in pairs(comments) do %>
<% if comment.isanon then %>

Anonymous

<% else %>

<%= comment.author %>

<% end %>

<%= comment.text %>

<% end %>
<% end %> <{system cat src/pages/parts/footer.etlua}>