antonmedv/monkberry

Question: How can I import a Child Template without importing it in the .monk file ?

alexmarucci opened this issue · 1 comments

Hey Guys,

I am trying to use monkberry in one of my projects and I can see I can Import a child template like so:

{% import child from './child-template' %}

<h1>Main Component</h1>
<!-- Child Template -->
<child />

Is there any alternative way I can Import the child component?
I tried this without success.

Monkberry.render(MainTemplate, document.body, {child: ChildTemplate})

Thanks in advance!

Import works only with import keyword.