iris/_examples/http_responsewriter/quicktemplate/templates/hello.qtpl

15 lines
246 B
Plaintext
Raw Normal View History

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