repo.or.cz
/
got-portable.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
portable: release 0.93
[got-portable.git]
/
regress
/
template
/
03-block.tmpl
blob
eee67b419ef25bca620f07fbef7169020bd6a490
1
{!
2
#include <stdlib.h>
3
4
#include "tmpl.h"
5
6
int base(struct template *, const char *);
7
!}
8
9
{{ define base(struct template *tp, const char *title) }}
10
{! char *foo = NULL; !}
11
<!doctype html>
12
<html>
13
<head>
14
<title>{{ title }}</title>
15
</head>
16
<body> {! /* TODO: frobnicate this line! */ !}
17
<h1>{{ title }}</h1>
18
{{ " | " }}
19
{{ "other stuff" }}
20
</body>
21
</html>
22
{{ finally }}
23
{! free(foo); !}
24
{{ end }}