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
✨feature: Pass all locals to ctx.Render #1693
Conversation
Thanks for opening this pull request! 🎉 Please check out our contributing guidelines. If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a testcase and something in the documentation (https://github.com/gofiber/docs)
The option PassLocalsToViews is set to disabled by default
Will have a look once I'm home, had quite a busy week so wasn't able to check it before |
thx |
Congrats on merging your first pull request! 🎉 We here at Fiber are proud of you! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
✨feature: Pass all locals to ctx.Render
This will by default pass all locals set user ctx.Local to the Template engine.
This could be usefull for setting variables using a middleware.