I’m using sveltex for frontend.
My layout looks like this:
<html>
<head>
...
</head>
<body>
<main role="main">
<%= Sveltex.render "paper/header", %{...}%>
<%= @inner_content %>
</main>
</body>
</html>
One would expect Phoenix.HTML.Tag.tag created by Sveltex.render to be siblings with @inner_content, but actually it takes liberty to declare @inner_content as its child; moreover, content of Svelte component itself gets included as a last child (.hero-head):
I was able to replicate this behaviour inserting Phoenix.HTML.Tag.tag directly. One workaround I found is to wrap tag with another div. Outer auxiliary div won’t show up in tree, and everything will work as expected. Is is well-defined behaviour or I’m missing some piece of tag functionality?



















