红联Linux门户
Linux帮助

Riot v2.4.0发布,JavaScript的MVP框架

发布时间:2016-05-08 09:29:25来源:红联作者:baihuo
Riot v2.4.0 发布了,Riot.js是一个客户端模型-视图-呈现(MVP)框架并且它非常轻量级甚至小于1kb.尽管他的大小令人难以置信,所有它能构建的有如下:一个模板引擎,路由,甚至是库和一个严格的并具有组织的MVP模式。当模型数据变化时视图也会自动更新。

改进记录如下:

riot

Fix Chrome Content Security Policy issues riot#1076, special riot build are provided to solve this problem (riot.csp)

Fix multiple global mixin riot#1699 - thanks to @wintercounter

Add better support for the svg tags riot#1199

observable

Now 30% faster [observable#18]https://github.com/riot/observable/pull/18 - thanks to @Ke-

Add events namespace support observable#15 - thanks again to @Ke-

cli

Add the --new option to easily create new riot components

Fix symlinks issues thanks to the shelljs@0.7.0 upgrade cli#14

compiler

Add the pug parser, jade will be deprecated in the next riot major release

Add the possibility to pass custom parsers options directly via the compiler.compile method through the parserOptions: {js: {}, template: {}, style: {}} key compiler#64

Fix un-escape parser options in html compiler#63

下载地址:https://github.com/riot/riot/archive/v2.4.0.tar.gz

来自:开源中国社区
文章评论

共有 0 条评论