Blob


1 {!
2 #include <stdlib.h>
4 #include "tmpl.h"
6 int base(struct template *, const char *);
8 !}
10 {{ define base(struct template *tp, const char *title) }}
11 {! char *foo = NULL; !}
12 <!doctype html>
13 <html>
14 <head>
15 <title>{{ title }}</title>
16 </head>
17 <body> {! /* TODO: frobnicate this line! */ !}
18 <h1>{{ title }}</h1>
19 {{ " | " }}
20 {{ "other stuff" }}
21 <script>
22 function greet() {
23 console.log("hello, world");
24 }
25 (function() {
26 greet();
27 })();
28 </script>
29 </body>
30 </html>
31 {{ finally }}
32 {! free(foo); !}
33 {{ end }}