templ-model
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

templ-model

templ-model is a web component that enables a declarative, HTML-based markup language to instantiate, and update, a JavaScript object, together with a view that is bound to the JavaScript object by way of Template Instantiation syntax.

templ-model extends obj-ml, but integrates with (for now) Github's template-parts library.

templ-model supports a property, "templateInstance", which is expected to have a method called "update" which the value of templ-model can be passed to as it changes.

templ-model supports another property, "template", that takes a step back, and sets, as a side effect, property templateInstance, after compiling the template using github's library.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.30latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.30
0.0.20
0.0.10
0.0.00

Package Sidebar

Install

npm i templ-model

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

7.26 kB

Total Files

6

Last publish

Collaborators

  • bahrus