Add templ package to handle rendering of templates

This commit is contained in:
Maximilian Friedersdorff 2025-01-28 21:27:18 +00:00
parent e6b5ea3921
commit e7e420cd47
6 changed files with 25 additions and 14 deletions

10
templates/view.tmpl.html Normal file
View file

@ -0,0 +1,10 @@
{{define "title"}}{{.note.Title}}{{end}}
{{define "main"}}
<div>
{{.note.BodyRendered}}
</div>
<div>
<a href="{{.urlEdit}}">Edit</a>
</div>
{{end}}