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

Global variables #26

Closed
snixtho opened this issue Jul 19, 2023 · 0 comments · Fixed by #39
Closed

Global variables #26

snixtho opened this issue Jul 19, 2023 · 0 comments · Fixed by #39
Labels
enhancement New feature or request

Comments

@snixtho
Copy link
Member

snixtho commented Jul 19, 2023

There should be the ability to add variables which are always available in templates.

An example for a use-case is when creating themed components that may change dynamically. As of right now, you will have to pass theme settings for every single rendering call. A better and cleaner solution would be to add the theme settings as a "global" variable, so that it is always sent to every render.

It should also be possible to change the value of global variables after initialization so that things can be updated anytime during runtime.

@snixtho snixtho added the enhancement New feature or request label Jul 19, 2023
@araszka araszka linked a pull request Nov 11, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant