Is this how handlebars is supposed to react?


#1

When a handlebars template {{value}} is somewhere where the browser doesn’t reasonably expect plain text, such as a <table>, it seems to behave in unexpected ways. I’ve created an example page with source and included it below. Can anybody explain what is going on or why this happening, and whether or not this behavior is intentional (I’m guessing not)?

Relevant link: http://tinyurl.com/handlebarsplaceholders


#2

<table>VALUE</table> is invalid HTML code. Use:

<table>
    <tr>
        <td>{{value}}</td>
    </tr>
</table>