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
If you create a <% loop %> tag inside a template without including an argument (i.e. not <% loop $MyIterable %>), the template is generated with some very clearly incomplete code, which includes the placeholder "Foo".
The relevant code was added in 91f4ba1 as part of #209 and it seems pretty clear the intention was to loop over whatever is currently in scope (basically a shortcut for <% loop $Me %>) but that for whatever reason the feature was never fully implemented.
Found while working on #11237
If you create a
<% loop %>
tag inside a template without including an argument (i.e. not<% loop $MyIterable %>
), the template is generated with some very clearly incomplete code, which includes the placeholder "Foo".Template:
Cached template (what actually gets executed):
This is handled by
SSTemplateParser::ClosedBlock_Handle_Loop()
The relevant code was added in 91f4ba1 as part of #209 and it seems pretty clear the intention was to loop over whatever is currently in scope (basically a shortcut for
<% loop $Me %>
) but that for whatever reason the feature was never fully implemented.PRs
The text was updated successfully, but these errors were encountered: