about summary refs log tree commit diff
path: root/src/logbook_template.ml
blob: 36fbc5f944e23b8eab5f914fed9192bcb578b940 (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
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>
      <p>{{ entry.summary }}</p>
      <ul>
      {% for item in entry.items %}
        <li>
          <p><em>{{ item.title }}</em></p>
          <p>{{ item.text }}</p>
        </li>
      {% endfor %}
      </ul>
    </article>
    {% endfor %}
  </main>
</body>"