about summary refs log tree commit diff
path: root/src/logbook_template.ml
blob: d21b3f98c65262ebef23f093ade9ad0d0f5d5922 (plain) (blame)
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
let template = "<!doctype html>
<html>
<head>
  <meta charset=\"utf-8\">
  <title>log</title>
</head>
<body>
  <main>
    <h1>log</h1>
    {% for entry in entries %}
    <article>
      <h2>{{ entry.date }}</h2>
      {% autoescape false %}
      {{ entry.summary }}
      <ul>
      {% for item in entry.items %}
        <li>
          {{ item.title }}
          {{ item.text }}
        </li>
      {% endfor %}
      {% endautoescape %}
      </ul>
    </article>
    {% endfor %}
  </main>
</body>"