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

Add application to Jinja2 environment to make it accessible in custom extensions #525

Merged

Conversation

girardinsamuel
Copy link
Contributor

In Jinja2 extensions that we can develop we can now do:

class MyExtension(Extension):
# ...
    self.environment.application  # == Masonite app container

@josephmancuso josephmancuso merged commit 2d0f23d into MasoniteFramework:4.0 Feb 12, 2022
@josephmancuso
Copy link
Member

How do Jinja 2 extensions for Masonite work?

@girardinsamuel girardinsamuel deleted the feat/add-app-in-jinja-env branch February 14, 2022 09:13
@girardinsamuel
Copy link
Contributor Author

How do Jinja 2 extensions for Masonite work?

I built one for a new package I will show you once it's done 😉

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

Successfully merging this pull request may close these issues.

None yet

2 participants