From 1ca0e11c15d4b5692b9b95c660689fd245ee66bd Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 6 Apr 2015 14:59:25 +0200 Subject: Add templates --- template/article.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 template/article.tmpl (limited to 'template/article.tmpl') diff --git a/template/article.tmpl b/template/article.tmpl new file mode 100644 index 0000000..eaa936a --- /dev/null +++ b/template/article.tmpl @@ -0,0 +1,7 @@ +{{/* This file is combined with the root.tmpl to display a single article. */}} + +{{define "title"}}{{.Doc.Title}}{{end}} +{{define "content"}} + {{template "doc" .Doc}} +{{end}} + -- cgit v1.2.3