fix comment
This commit is contained in:
parent
a35c1b71a4
commit
e647f5ff20
@ -130,7 +130,7 @@ class IterTag(Tag):
|
|||||||
raise ValueError("The render function must take 2 arguments.")
|
raise ValueError("The render function must take 2 arguments.")
|
||||||
component = self.render_fn(arg, index)
|
component = self.render_fn(arg, index)
|
||||||
|
|
||||||
# Nested foreach components, cond must be wrapped in fragments.
|
# Nested foreach components or cond must be wrapped in fragments.
|
||||||
if isinstance(component, (Foreach, Cond)):
|
if isinstance(component, (Foreach, Cond)):
|
||||||
component = Fragment.create(component)
|
component = Fragment.create(component)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user