I'm building a site using sapper that uses the [slug].svelte convention for individual blog entries. The blog content comes out of a (simulated) database, and contains html.
The html is included at the bottom, like so:
...
<div class="content">
{@html post.html}
</div>
...
All well and good, it renders the html just peachy.
However, consider the following:
In the [slug].svelte file:
import AComponent from '../../components/AComponent.svelte'
And, in the included html rendered inside the {@html post.html}:
<p>yada yada yada</p>
<AComponent prop="data" />
<p>More yada yada yada...</p>
AComponent doesn't get instantiated or invoked.
Is there a way to make this happen? Or am I trying to do something not possible?
(I know the component is ok - it's been tested in another file with complete html.)
Thanx