Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 246 Bytes
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 %}
You can’t perform that action at this time.