1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00

add wiki.tmpl

This commit is contained in:
shaoying 2019-11-15 22:30:53 +08:00
parent 88bb4eaf27
commit 16acf908d6

View File

@ -0,0 +1,9 @@
{{define "table"}}<table>{{range $i, $line := .|table}}
{{if eq $i 0}}
<tr>{{range $k, $v := $line}}<th>{{$k}}</th>{{end}}</tr>
{{end}}
<tr>{{range $k, $v := $line}}<td>{{$v}}</td>{{end}}</tr>
{{end}}</table>{{end}}
{{define "code"}}<div>{{results .}}</div>{{end}}