yznts / kyoto

Asynchronous frontends with Go
https://pkg.go.dev/github.com/yznts/kyoto/v3
MIT License
651 stars 28 forks source link

Make functions from TFuncMap available outside of FuncMap #52

Closed yznts closed 2 years ago

yznts commented 2 years ago

It's possible that it will be needed while implementing Render interface (https://github.com/yuriizinets/kyoto/issues/42).
We can extract functions to be available with preffix "T", like kyoto.TMeta, kyoto.TDynamics, kyoto.TComponentAttrs, etc.
TFuncMap can be refactored just to map to existing public template functions.