2 bff58270 2022-09-19 op #include <stdlib.h>
3 bff58270 2022-09-19 op #include <string.h>
5 ebc9d200 2022-12-04 op #include "tmpl.h"
8 bff58270 2022-09-19 op {{ define base(struct template *tp, const char *title) }}
9 bff58270 2022-09-19 op {! char *foo = NULL; !}
10 bff58270 2022-09-19 op <!doctype html>
13 bff58270 2022-09-19 op <title>{{ title }}</title>
16 bff58270 2022-09-19 op <h1>{{ title }}</h1>
17 bff58270 2022-09-19 op {{ if strchr(title, '*') != NULL }}
18 bff58270 2022-09-19 op <p>"{{ title }}" has a '*' in it</p>
20 bff58270 2022-09-19 op <p>tautology!</p>
22 bff58270 2022-09-19 op {{ else if strchr(title, '=') != NULL }}
23 bff58270 2022-09-19 op <p>"{{ title }}" has a '=' in it!</p>
25 bff58270 2022-09-19 op <p>"{{ title }}" doesn't have a '*' in it</p>
30 bff58270 2022-09-19 op {! free(foo); !}