Blob


1 {!
2 #include <stdlib.h>
4 #include "tmpl.h"
6 int base(struct template *, const char *);
7 !}
9 {{ define base(struct template *tp, const char *title) }}
10 {! char *foo = NULL; !}
11 <!doctype html>
12 <html>
13 <head>
14 <title>{{ title }}</title>
15 </head>
16 <body> {! /* TODO: frobnicate this line! */ !}
17 <h1>{{ title }}</h1>
18 {{ " | " }}
19 {{ "other stuff" }}
20 </body>
21 </html>
22 {{ finally }}
23 {! free(foo); !}
24 {{ end }}