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

Using template in RockerBody does not produce expected result #131

Open
mladenbolic opened this issue Feb 4, 2020 · 1 comment
Open

Comments

@mladenbolic
Copy link

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>
@albert-kam
Copy link

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>.

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

2 participants