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

Pass strict_variables and strict filters to render context #1670

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dansingerman
Copy link

Problem

If you call render (or render!) with strict_variables or strict_filters set to true, when you render a partial using the render tag those directives are ignored.

It seems to me if you want to raise errors on invalid variables or filters, you'll want that to be the case in rendered partials too.

Solution

Pass strict_variables and strict_filters to a context's new_isolated_subcontext

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