Add templ package to handle rendering of templates
This commit is contained in:
parent
e6b5ea3921
commit
e7e420cd47
6 changed files with 25 additions and 14 deletions
10
templates/view.tmpl.html
Normal file
10
templates/view.tmpl.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{{define "title"}}{{.note.Title}}{{end}}
|
||||
{{define "main"}}
|
||||
<div>
|
||||
{{.note.BodyRendered}}
|
||||
</div>
|
||||
<div>
|
||||
<a href="{{.urlEdit}}">Edit</a>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue