From f5b5f72f7eaf14692b8036c3698037c647b2423a Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 5 May 2024 19:02:43 +0200 Subject: feat: Add qtc templating --- templates/helloworld.qtpl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 templates/helloworld.qtpl (limited to 'templates/helloworld.qtpl') diff --git a/templates/helloworld.qtpl b/templates/helloworld.qtpl new file mode 100644 index 0000000..02c0968 --- /dev/null +++ b/templates/helloworld.qtpl @@ -0,0 +1,16 @@ +{% code +type HelloPage struct { + Body string +} +%} + +{% func (p *HelloPage) Title() %}Hello{% endfunc %} + +{% func (p *HelloPage) Content() %} +HelloWorld + +{%s p.Body %} +{% endfunc %} + +{% func (p *HelloPage) Script() %} +{% endfunc %} -- cgit v1.2.3