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

Provide access to globals and filters #720

Open
mitsuhiko opened this issue Feb 12, 2025 · 0 comments
Open

Provide access to globals and filters #720

mitsuhiko opened this issue Feb 12, 2025 · 0 comments
Labels
decision-needed A decision needs to be made enhancement New feature or request

Comments

@mitsuhiko
Copy link
Owner

The discussion in #715 has triggered an abstract need to understand what's a known declaration in the template. Today you can look up variables by known name from the state, but you cannot enumerate them. The same is true for filters.

In theory something like State::declared_variables could be provided which is a list of all variables declared. Likewise State::filters could be added to return a list of filters that are registered by name. Providing access to the value itself seems out of scope for sure because filters are boxed internally and I do not want to expose these values.

@mitsuhiko mitsuhiko added decision-needed A decision needs to be made enhancement New feature or request labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
decision-needed A decision needs to be made enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant