1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-24 05:17:03 +00:00
Files
kararas_iris/_examples/view/quicktemplate/templates/hello.qtpl
Gerasimos (Makis) Maropoulos a8a3afea22 update dependencies
2025-08-15 23:29:20 +03:00

15 lines
238 B
Plaintext

Hello template, implements the Partial's methods.
{% code
type Hello struct {
Vars map[string]any
}
%}
{% func (h *Hello) Body() %}
<h1>{%v h.Vars["message"] %}</h1>
<div>
Hello <b>{%v h.Vars["name"] %}!</b>
</div>
{% endfunc %}