Skip to content

Using template in RockerBody does not produce expected result #131

@mladenbolic

Description

@mladenbolic

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>

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