2 84efe063 2023-04-04 thomas #include <stdlib.h>
4 84efe063 2023-04-04 thomas #include "tmpl.h"
6 84efe063 2023-04-04 thomas int base(struct template *, const char *);
10 84efe063 2023-04-04 thomas {{ define base(struct template *tp, const char *title) }}
11 84efe063 2023-04-04 thomas {! char *foo = NULL; !}
12 84efe063 2023-04-04 thomas <!doctype html>
15 84efe063 2023-04-04 thomas <title>{{ title }}</title>
17 84efe063 2023-04-04 thomas <body> {! /* TODO: frobnicate this line! */ !}
18 84efe063 2023-04-04 thomas <h1>{{ title }}</h1>
19 84efe063 2023-04-04 thomas {{ " | " }}
20 84efe063 2023-04-04 thomas {{ "other stuff" }}
22 84efe063 2023-04-04 thomas function greet() {
23 84efe063 2023-04-04 thomas console.log("hello, world");
25 84efe063 2023-04-04 thomas (function() {
31 84efe063 2023-04-04 thomas {{ finally }}
32 84efe063 2023-04-04 thomas {! free(foo); !}