template-instance
v0.2.2
Published
TemplateInstance polyfill
Downloads
7
Readme
TemplateInstance
Template Instantiation polyfill
Installation
$ npm install template-instance
Usage
index.html.
<template id=template>
Hello, {{ name || 'user' }}
</template>
<script type=module>
import 'node_modules/@custom/template-instance/dist/'
const instance = template.createInstance({ name: 'Robins' })
document.body.append(instance)
instance.update({ name: 'Bobins' })
</script>