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

Context Variables through app.router.add_page #3

Closed
jeremiahsa opened this issue Sep 27, 2013 · 1 comment
Closed

Context Variables through app.router.add_page #3

jeremiahsa opened this issue Sep 27, 2013 · 1 comment
Milestone

Comments

@jeremiahsa
Copy link

When creating a new page with add_page, I would have expected to be able to set context variables directly for both the server-side and the config.json. Currently, creating a view as a third parameter is the only way to pass a context variable through.

It would be really handy to be able to pass variables directly through to both the config.json and the "page_name".json.

Thanks!

@sheppard
Copy link
Member

Yes, this would be a good feature to have, and it would more closely match the behavior in app.js. I've updated app.py to use the config as the context for simple pages added through add_page.

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

2 participants