0.2.2 • Published 3 years ago

template-instance v0.2.2

Weekly downloads
47
License
-
Repository
github
Last release
3 years ago

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>
0.2.2

3 years ago

0.2.1

3 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago