goview icon indicating copy to clipboard operation
goview copied to clipboard

How to use Multitemplate for gin?

Open raditzlawliet opened this issue 5 years ago • 2 comments

I see in your example using different template like 'gvFrontend' and 'gvBackend', But in gin, we can only pass one ViewEngine. Is there any example for gin?

raditzlawliet avatar Jan 14 '20 05:01 raditzlawliet

See the example: https://github.com/foolin/goview/tree/master/_examples/gin-multiple

foolin avatar Jan 15 '20 01:01 foolin

oh, there are ginview.NewMiddleware for that, thanks.

Then, do we need to set router.HTMLRender to use goviev if i want to use all multiple template using middleware instead?

raditzlawliet avatar Feb 02 '20 17:02 raditzlawliet