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

Shared variables #43

Closed
kylekatarnls opened this issue Jul 31, 2016 · 1 comment
Closed

Shared variables #43

kylekatarnls opened this issue Jul 31, 2016 · 1 comment
Milestone

Comments

@kylekatarnls
Copy link
Member

Variables should be able to be added before the call to the ->render() methood. This way, we could share variables between several/all templates.

@kylekatarnls kylekatarnls added this to the 2.1 milestone Jul 31, 2016
@kylekatarnls
Copy link
Member Author

The ->share() method is now available on Pug instances:
https://github.com/pug-php/pug/blob/master/tests/features/share.php

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