Deprecation: include tag - marko-js/marko GitHub Wiki
The <include> tag is deprecated in favor of either <${dynamic}/> tagnames or dynamic text ${placeholders}.
<include('../../layouts/site-layout.marko')>
Hello World
</include>…now uses the import statement and a dynamic tagname:
import Layout from "../../layouts/site-layout.marko"
<${Layout}>
Hello World
</><include('../../layouts/site-layout.marko', input)>
Hello World
</include>import Layout from "../../layouts/site-layout.marko"
<${Layout} ...input>
Hello World
</><include(input.body)/>This is now replaced completely by dynamic tagnames:
<${input.body}/>$ const text = "hi"
<p>
<include(text)/>
</p>This is now replaced entirely by dynamic text placeholders:
$ const text = "hi"
<p>
${text}
</p>