Actions
Bug #18227
closedSnippet with variables does not reset @vars after they finish in unsafe mode
Description
If we have a template such as
<%= snippet 'test', :variables => { :var => 'value' } <%= @var %>
the @var would be set by the template which can cause problems later. This only happens in unsafe mode where we use the same context for each rendering. We need to split local context variables and reset them after this local context is rendered.
Actions