dommit:微型模板引擎

时间:2021-05-16 06:24:28
【文件属性】:
文件名称:dommit:微型模板引擎
文件大小:32KB
文件格式:ZIP
更新时间:2021-05-16 06:24:28
JavaScript dommit 简单灵活的模板和视图绑定引擎,支持自定义绑定和模型更改的实时更新。 安装 使用npm通过 : $ npm install dommit 快速开始 渲染具有预定义数据模型的基本html模板。 var view = Dommit ( '

Hello {{name}}!

' , { name : 'Adam' } ) ; // you can add the view "element" to the html whenever you want // view.el contains the html element document . body . appendChild ( view . el ) ; < p> Hello Adam! 处理事件 Dommit提供了一种通过预定义的“绑定”为dom事件注册处理程序的简便方法。 v
【文件预览】:
dommit-master
----.gitignore(30B)
----Contributing.md(105B)
----package.json(967B)
----History.md(77B)
----.travis.yml(427B)
----.zuul.yml(212B)
----examples()
--------checkbox.html(674B)
--------form.html(2KB)
--------large.html(1KB)
--------observe.html(2KB)
--------hide.html(1KB)
--------editable.html(661B)
--------format.html(1KB)
--------defaults.html(641B)
--------autosubmit.html(901B)
--------backbone.html(1KB)
----Readme.md(12KB)
----lib()
--------attr-binding.js(1KB)
--------binding.js(2KB)
--------adapter.js(2KB)
--------bindings.js(5KB)
--------index.js(8KB)
--------utils.js(2KB)
--------walk.js(310B)
--------text-binding.js(1KB)
--------each.js(6KB)
----test()
--------bindings.js(3KB)
--------attr-interpolation.js(2KB)
--------adapters.js(3KB)
--------text-interpolation.js(4KB)
--------each.js(11KB)
--------reactive.js(14KB)

网友评论