You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template_exclusion_filter: This is called when determining whether to apply runtime checks on a .erb template.
When this Proc returns false, no safety checks are applied and parsing is done using the default Rails erubi engine.
For example, to exclude erb templates provided by libraries, use: Proc.new { |filename| !filename.start_with?(Rails.root.to_s) }.
Defaults to nil (all html.erb templates are parsed).
Is this the case? I think it should be that if the Proc returns true, it will use the Rails parser. This is based on my understanding of how the following three lines would execute depending on the return value of the filter:
In the README, the documentation has this:
Is this the case? I think it should be that if the
Proc
returnstrue
, it will use the Rails parser. This is based on my understanding of how the following three lines would execute depending on the return value of the filter:better-html/lib/better_html/better_erb.rb
Lines 50 to 52 in fffc29c
The example proc is a valid proc for checking whether the template should be parsed.
The text was updated successfully, but these errors were encountered: