Blob
1 {!2 #include <stdlib.h>3 #include <string.h>5 #include "tmpl.h"6 !}8 {{ define base(struct template *tp, const char *title) }}9 {! char *foo = NULL; !}10 <!doctype html>11 <html>12 <head>13 <title>{{ title }}</title>14 </head>15 <body>16 <h1>{{ title }}</h1>17 {{ if strchr(title, '*') != NULL }}18 <p>"{{ title }}" has a '*' in it</p>19 {{ if 1 }}20 <p>tautology!</p>21 {{ end }}22 {{ else if strchr(title, '=') != NULL }}23 <p>"{{ title }}" has a '=' in it!</p>24 {{ else }}25 <p>"{{ title }}" doesn't have a '*' in it</p>26 {{ end }}27 </body>28 </html>29 {{ finally }}30 {! free(foo); !}31 {{ end }}