valyala / quicktemplate

Fast, powerful, yet easy to use template engine for Go. Optimized for speed, zero memory allocations in hot paths. Up to 20x faster than html/template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow Call Render Function in Objects

aight8 opened this issue · comments

Allow to call functions on objects result.

{% v.Obj().RenderHeader(123) %} // Header is a render function generated by quicktemplate (so the 3 variants of the func are available)

Currently this is not possible at all. That makes it quiet unflexible to use render functions on objects.

v.StreamRenObj()....