From 16acf908d659af5dc082fbc2702597b91a166fc9 Mon Sep 17 00:00:00 2001 From: shaoying Date: Fri, 15 Nov 2019 22:30:53 +0800 Subject: [PATCH] add wiki.tmpl --- usr/template/wiki/wiki.tmpl | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 usr/template/wiki/wiki.tmpl diff --git a/usr/template/wiki/wiki.tmpl b/usr/template/wiki/wiki.tmpl new file mode 100644 index 00000000..699a2859 --- /dev/null +++ b/usr/template/wiki/wiki.tmpl @@ -0,0 +1,9 @@ + +{{define "table"}}{{range $i, $line := .|table}} + {{if eq $i 0}} + {{range $k, $v := $line}}{{end}} + {{end}} + {{range $k, $v := $line}}{{end}} +{{end}}
{{$k}}
{{$v}}
{{end}} + +{{define "code"}}
{{results .}}
{{end}}