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 {! char *foo = NULL; !}
11 6509b181 2022-12-30 thomas <!doctype html>
12 6509b181 2022-12-30 thomas <html>
13 6509b181 2022-12-30 thomas <head>
14 6509b181 2022-12-30 thomas <title>{{ title }}</title>
15 6509b181 2022-12-30 thomas </head>
16 6509b181 2022-12-30 thomas <body> {! /* TODO: frobnicate this line! */ !}
17 6509b181 2022-12-30 thomas <h1>{{ title }}</h1>
18 6509b181 2022-12-30 thomas {{ " | " }}
19 6509b181 2022-12-30 thomas {{ "other stuff" }}
20 6509b181 2022-12-30 thomas </body>
21 6509b181 2022-12-30 thomas </html>
22 6509b181 2022-12-30 thomas {{ finally }}
23 6509b181 2022-12-30 thomas {! free(foo); !}
24 6509b181 2022-12-30 thomas {{ end }}