blob: b149b172138f8f718bc14c27456ae4426d0f7790 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package main
//go:generate go run gen.go
import (
//"fmt"
"os"
"src.userspace.com.au/templates"
)
func main() {
tmpl := templates.Must(templates.New(
templates.EnableHTMLTemplates(),
templates.Extensions([]string{".tmpl"}),
templates.Map([]templates.Mapping{
{Base: "../", Source: "tmpl"},
{Base: "../", Source: "static", Extensions: []string{".css", ".js"}},
}),
//templates.Debug(func(a ...interface{}) { fmt.Fprintln(os.Stderr, a...) }),
))
if _, err := tmpl.WriteTo(os.Stdout); err != nil {
panic(err)
}
}
|