got parser to work (mostly i think). it aint so pretty tho. ALSO BRO FUCKING CRLF

This commit is contained in:
kree 2026-08-14 03:17:52 -04:00
parent 43779e110a
commit cd07c310cb
7 changed files with 258 additions and 127 deletions

11
examples/data.html Normal file
View file

@ -0,0 +1,11 @@
Dear {{.Name}},
{{if .Attended}}
It was a pleasure to see you at the wedding.
{{- else}}
It is a shame you couldn't make it to the wedding.
{{- end}}
{{with .Gift -}}
Thank you for the lovely {{.}}.
{{end}}
Best wishes,
Josie

4
examples/define.html Normal file
View file

@ -0,0 +1,4 @@
{{define "T1"}}ONE{{end}}
{{define "T2"}}TWO{{end}}
{{define "T3"}}{{template "T1"}} {{template "T2"}}{{end}}
{{template "T3"}}