about summary refs log tree commit diff
path: root/src/logbook_template.ml
blob: 14ecacca84a9b299b9562aae2604628da2b72f7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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>
          {{ item.title }}
          {{ item.text }}
        </li>{% endfor %}{% endautoescape %}
      </ul>
    </article>{% endfor %}
  </main>
</body>"