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