Template logic not rendering content inside a table
QuinnBast opened this issue · 0 comments
QuinnBast commented
When using a widget with a template, elements that are rendered inside of a <table>
element are not parsed properly.
This template:
{{batteryList}}
<table>
<tbody>
<tr>{{batteryList}}</tr>
</tbody>
</table>
Will output the following to the dom:
[object Object]
[object Object]
<table style="">
<tbody style="">
<tr style=""></tr>
</tbody>
</table>
This also applies to for loops {% for element in list %}
, which are unable to loop through elements when they are placed inside a <table>