Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template logic not rendering content inside a table #308

Open
QuinnBast opened this issue Jun 19, 2019 · 0 comments
Open

Template logic not rendering content inside a table #308

QuinnBast opened this issue Jun 19, 2019 · 0 comments

Comments

@QuinnBast
Copy link

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant