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

i want to add errors / success flash messages globals #878

Closed
HosMercury opened this issue Dec 3, 2023 · 3 comments
Closed

i want to add errors / success flash messages globals #878

HosMercury opened this issue Dec 3, 2023 · 3 comments

Comments

@HosMercury
Copy link

how to get the flash messages / success msg / errors msg
by having the ability to have globals/locals?

@Keats
Copy link
Owner

Keats commented Dec 4, 2023

When you say globals, you mean a context that is passed to every render?

@HosMercury
Copy link
Author

HosMercury commented Dec 4, 2023

I mean something is sometimes sent to the( base.html ) like flash messages.
it will always be in the base
it should appear if I send them to a specific page descended from the base.html
otherwise nothing should happen.

so the variable will be in the base.html, not the child page. without that. I have to send that variable with every context which sometimes I do not need to do

@HosMercury
Copy link
Author

there ??

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