liquid
liquid copied to clipboard
Pass strict_variables and strict filters to render context
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