aboutsummaryrefslogtreecommitdiff
path: root/src/views/page.ecr
blob: 54f4c7b961c750befa1636469ee9fa1bba6cc0f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html lang='en-US'>
  <head>
    <meta charset="utf-8"/>
    <title><%=
      # TODO: should call page title instead
      h(@item["name"])
    %></title>

    <%=
      styles
    %>
  </head>

  <body>
    <div class='post'>
      <b>page: <%= h(@item["name"]) %></b><br/>
      <b>
        by <%= h(@item["user_name"]) %>
        on <%= h(@item["posted_at_text"]) %>
      </b><br/><br/>
      <%= @item["body"] %>
    </div>
  </body>

  <%=
    scripts
  %>
</html>