Bare.contents should be a Var

This commit is contained in:
Benedikt Bartscher 2024-02-29 19:49:55 +01:00
parent 1c89f012b6
commit fd5a5b97f2
No known key found for this signature in database

View File

@ -27,7 +27,7 @@ class Bare(Component):
if isinstance(contents, Var) and contents._var_data:
contents = contents.to(str)
else:
contents = str(contents)
contents = Var.create(str(contents))
return cls(contents=contents) # type: ignore
def _render(self) -> Tag: