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

Make CodeGenerator and Context overridable #404

Closed

Conversation

ThiefMaster
Copy link
Member

It's probably not needed very often, but subclassing e.g. the Environment to use a custom class for it would be so much cleaner than having to monkey-patch or fork.

ThiefMaster added a commit to ThiefMaster/jinja that referenced this pull request Apr 6, 2015
ThiefMaster added a commit to ThiefMaster/jinja that referenced this pull request Apr 6, 2015
ThiefMaster added a commit to ThiefMaster/jinja that referenced this pull request Apr 6, 2015
ThiefMaster added a commit to ThiefMaster/jinja that referenced this pull request Apr 6, 2015
@untitaker
Copy link
Contributor

I'm really confused by your commit referencing the PR itself but the diff checks out.

@ThiefMaster
Copy link
Member Author

Initially I was going to open a separate PR, then I remembered that the hub util can convert an existing issue in a PR. I've updated the commits to remove the unneeded reference.

@untitaker
Copy link
Contributor

I see, I thought that functionality has been removed from Github.

@ThiefMaster
Copy link
Member Author

It's deprecated (not sure why, seems to be useful) according to the output of the command:

Warning: Issue to pull request conversion is deprecated and might not work in the future.

@untitaker
Copy link
Contributor

Thanks, merged!

@ThiefMaster ThiefMaster deleted the override-codegen-context branch April 6, 2015 12:29
@untitaker
Copy link
Contributor

Regarding that hub feature: mislav/hub@4f70dd1

ThiefMaster added a commit to ThiefMaster/flask that referenced this pull request Apr 6, 2015
This is useful e.g. when using the new Jinja Environment
attributes added in pallets/jinja#404
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants