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