Blame


1 6509b181 2022-12-30 thomas {!
2 6509b181 2022-12-30 thomas #include <stdlib.h>
3 6509b181 2022-12-30 thomas
4 6509b181 2022-12-30 thomas #include "tmpl.h"
5 6509b181 2022-12-30 thomas
6 6509b181 2022-12-30 thomas int base(struct template *, const char *);
7 6509b181 2022-12-30 thomas !}
8 6509b181 2022-12-30 thomas
9 6509b181 2022-12-30 thomas {{ define base(struct template *tp, const char *title) }}
10 6509b181 2022-12-30 thomas <!doctype html>
11 6509b181 2022-12-30 thomas <html>
12 6509b181 2022-12-30 thomas <head>
13 6509b181 2022-12-30 thomas <title>{{ title | urlescape }}</title>
14 6509b181 2022-12-30 thomas </head>
15 6509b181 2022-12-30 thomas <body>
16 6509b181 2022-12-30 thomas <h1>{{ title | unsafe }}</h1>
17 6509b181 2022-12-30 thomas </body>
18 6509b181 2022-12-30 thomas </html>
19 6509b181 2022-12-30 thomas {{ end }}