Blob
1 {!2 #include <stdlib.h>3 #include <string.h>5 #include "tmpl.h"7 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>18 <h1>{{ title }}</h1>19 {{ if strchr(title, '*') != NULL }}20 <p>"{{ title }}" has a '*' in it</p>21 {{ if 1 }}22 <p>tautology!</p>23 {{ end }}24 {{ else if strchr(title, '=') != NULL }}25 <p>"{{ title }}" has a '=' in it!</p>26 {{ else }}27 <p>"{{ title }}" doesn't have a '*' in it</p>28 {{ end }}29 </body>30 </html>31 {{ finally }}32 {! free(foo); !}33 {{ end }}