mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 17:24:05 +08:00
add wiki.tmpl
This commit is contained in:
parent
88bb4eaf27
commit
16acf908d6
9
usr/template/wiki/wiki.tmpl
Normal file
9
usr/template/wiki/wiki.tmpl
Normal 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}}
|
Loading…
x
Reference in New Issue
Block a user