fizzed/rocker

Using template in RockerBody does not produce expected result

mladenbolic opened this issue · 1 comments

I have 3 templates:
Main.rocker.html

<html>
<body>
@views.Body.template() -> {
<div>
some content
</div>

@views.Table.template()
}
</html>
</body>

Body.rocker.html

@args (RockerBody content)

<div id="body">
    @content
</div>

Table.rocker.html

<table></table>

The Table.rocker.html content is not printed inside the <div id="body"> but outside of it.
Output:

<html>
<body>
<div id="body">
  <div>
    some content
  <div>
<div>
<table></table>
</body>
</html>

I havent faced this kind of issue before, but i assume that is because your closing tag is not in correct order, especially the </html></body>, which should be </body></html>.