Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Multitemplate for gin? #6

Open
raditzlawliet opened this issue Jan 14, 2020 · 2 comments
Open

How to use Multitemplate for gin? #6

raditzlawliet opened this issue Jan 14, 2020 · 2 comments

Comments

@raditzlawliet
Copy link

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?

@foolin
Copy link
Owner

foolin commented Jan 15, 2020

@raditzlawliet
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants