Skip to content

Template logic not rendering content inside a table #308

@QuinnBast

Description

@QuinnBast

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions