Pobin is a Template Loader for pongo2 that is used to load assets from go-bindata.
It's easy to use pobin in combination with pongo2 and go-bindata:
- First compile your assets
go-bindata -o assets/templates.go -pkg=assets templates/...
- Initialize a pongo2 template set. Because of the way go-bindata works, you have to define your own loading function as a parameter.
assetSet := pongo2.NewSet("assetfs", pobin.NewMemoryTemplateLoader(assets.Asset))