Inject a template in Starter

<div kll-t="myTemplate"></div>

Templates must be import in kll

//main.js

import { KLL } from "@kll_/core"
import * as templatePath from "./templates"

const config = {
	// ... other props
  templatePath, // <----- HERE
}

[// Initialize KLL](<https://kazerlelutin.notion.site/Getting-Started-e247e41153a24c53a808056850b03764>)
const app = new KLL(config)

Template support <slot></slot>

<!-- /templates/withChild.html -->

<template id="withChild">
	<div>
	<h2>My title</h2>
	<slot></slot>
	</div>
</template>

In your page

<!-- page  -->

<div kll-t="withChild">
	<span>child</span>
</div>

give

<!-- render this -->

	<div>
		<h2>My title</h2>
			<span>child</span>
	</div>