aboutsummaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-02-16 19:03:01 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-02-16 19:03:01 +0100
commit2db9177a2415a351a36517beae95013b1e0c382a (patch)
tree8bc0a8dce7f060cee2a7da14231f422df2ab88f4 /tmpl
parentc4009c4459b8c2cd657585981ee21c553f0b4c4f (diff)
Add delete
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/doc8
-rw-r--r--tmpl/root7
2 files changed, 14 insertions, 1 deletions
diff --git a/tmpl/doc b/tmpl/doc
index f4f1dd3..40ec1aa 100644
--- a/tmpl/doc
+++ b/tmpl/doc
@@ -21,3 +21,11 @@
{{end}}
</ul>
{{end}}
+
+{{define "olist"}}
+<ol>
+ {{range .}}
+ <li>{{.}}</li>
+ {{end}}
+</ol>
+{{end}}
diff --git a/tmpl/root b/tmpl/root
index ae31e36..15e0ba7 100644
--- a/tmpl/root
+++ b/tmpl/root
@@ -18,7 +18,12 @@
<section>
<header>
<h1>{{template "title" .}}</h1>
-<nav><a href="/">root</a> <a href="/index">index</a> {{with .Title}}<a href="/edit/{{.}}">edit</a>{{end}}</nav>
+<nav>
+ <a href="/">root</a>
+ <a href="/index">index</a>
+ {{with .Title}}<a href="/edit/{{.}}">edit</a>{{end}}
+ {{with .Title}}<a href="/del/{{.}}">delete</a>{{end}}
+</nav>
</header>
{{template "content" .}}
</section>