2 bff58270 2022-09-19 op #include <stdlib.h>
3 bff58270 2022-09-19 op #include <string.h>
6 bff58270 2022-09-19 op {{ define base(struct template *tp, const char *title) }}
7 bff58270 2022-09-19 op {! char *foo = NULL; !}
8 bff58270 2022-09-19 op <!doctype html>
11 bff58270 2022-09-19 op <title>{{ title }}</title>
14 bff58270 2022-09-19 op <h1>{{ title }}</h1>
15 bff58270 2022-09-19 op {{ if strchr(title, '*') != NULL }}
16 bff58270 2022-09-19 op <p>"{{ title }}" has a '*' in it</p>
18 bff58270 2022-09-19 op <p>tautology!</p>
20 bff58270 2022-09-19 op {{ else if strchr(title, '=') != NULL }}
21 bff58270 2022-09-19 op <p>"{{ title }}" has a '=' in it!</p>
23 bff58270 2022-09-19 op <p>"{{ title }}" doesn't have a '*' in it</p>
28 bff58270 2022-09-19 op {! free(foo); !}