Hi everyone,
I am a newbie to Mustache and am using v0.99.4 .
I would like to use Mustache sections within html tables. Somehow, html doesn't seem to understand the presence of the Mustache section, and is displacing the Mustache section to a positon outside the table. I see this as a problem with plain html itself. The Mustache's html template looks like this :
<html>
<head>
<h1>Listing Posts</h1>
</head>
<table>
<tr>
<th>Name</th>
</tr>
{{#posts}}
<tr>
<td>{{name}}</td>
</tr>
{{/posts}}
</table>
</html>
On viewing this html from the browser , the {{#post} {{/post} is moved out of the <table>. But, if there is some other html tag like a <ul> instead of a <table> , then the section stays in its rightful place when viewed from the browser. Any idea on why this could be happening ?
Thanks
Binita