JavaScript 的 MVP 框架,Riot.js 2.1.0 發布
Riot.js 是一個客戶端模型-視圖-呈現(MVP)框架并且它非常輕量級甚至小于1kb.盡管他的大小令人難以置信,所有它能構建的有如下:一個模板引擎,路由,甚 至是庫和一個嚴格的并具有組織的MVP模式。當模型數據變化時視圖也會自動更新。Riot.js 支持 IE8。
更新內容:
-
added the possibility to set the parent attributes also in the tag template #289
-
added saucelabs tests hooks for crossbrowser testing
-
added coveralls coverage hooks to check the code coverage on any pull request
-
added the riot.parsers property [css, js, html]
-
added the preventUpdate flag to avoid to trigger the auto update callbacks #699
-
added the components mixins in the core #536
-
updated the node compiler from the browser compiler
-
updated the build script using smash to compile riot
CDNJS
-
https://cdnjs.cloudflare.com/ajax/libs/riot/2.1.0/riot+compiler.min.js
-
https://cdnjs.cloudflare.com/ajax/libs/riot/2.1.0/riot.min.js
下載:https://github.com/riot/riot/archive/v2.1.0.zip。