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

Create a preprocess context object? #1

Open
voxpelli opened this issue Aug 14, 2014 · 0 comments
Open

Create a preprocess context object? #1

voxpelli opened this issue Aug 14, 2014 · 0 comments

Comments

@voxpelli
Copy link
Owner

Instead of mixing eg. the block() method into the variable object sent into the preprocess functions and instead of requiring preprocess methods to themselves request locals method through getLocals() it would be good to call all preprocess methods in a purpose specific context object that contains everything useful for the preprocess method easily at hand – also things like which the active theme is and such.

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

No branches or pull requests

1 participant