NewContext
#func NewContext(): HashMap<str, str>Creates an empty context: a map from name to value. Add values with put and free it when you are done.
import template
func main:
mut ctx := template.NewContext()
defer ctx.Free()
ctx.Put("name", "Sara")
ctx.Put("message", "<hello>")
println template.Render("Hello {{name}}! {{message}}", ctx)
println template.RenderHTML("<p>{{message}}</p>", ctx)
println template.EscapeHTML("<a href=\"x\">&</a>")
println template.Var("name")
endHello Sara! <hello>
<p><hello></p>
<a href="x">&</a>
{{name}}