liquid icon indicating copy to clipboard operation
liquid copied to clipboard

Pass strict_variables and strict filters to render context

Open dansingerman opened this issue 2 years ago • 0 comments

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

dansingerman avatar Jan 11 '23 14:01 dansingerman