-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
contextless macros #352
contextless macros #352
Conversation
macro_file_contents=macro_file_contents, | ||
root_path=get_os_path('/usr/src/app'), | ||
package_name='root') | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@drewbanin fyi
ae792eb
to
ace4b49
Compare
yield token | ||
|
||
return jinja2.sandbox.SandboxedEnvironment( | ||
extensions=[MacroContextCatcherExtension]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so. cool.
…t into contextless-macros
@cmcarthur this should also check if |
@drewbanin yep, that's right. anything passed in as an arg can be removed from the disallowed lists |
merged into #356 |
WIP