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

jopen 8年前
   <p><img alt="" src="https://simg.open-open.com/show/ae6697fe28b153c2f0f92fe04c52443d.png" /></p>    <p>Riot v2.4.0 发布了,Riot.js是一个客户端模型-视图-呈现(MVP)框架并且它非常轻量级甚至小于1kb.尽管他的大小令人难以置信,所有它能构建的有如下:一个模板引擎,路由,甚至是库和一个严格的并具有组织的MVP模式。当模型数据变化时视图也会自动更新。</p>    <p>官方日志:</p>    <ul>     <li> <p><strong>riot</strong></p>      <ul style="list-style-type:square">       <li> <p>Fix Chrome Content Security Policy issues <a href="/misc/goto?guid=4958990246649625938">riot#1076</a>, special riot build are provided to solve this problem (<code>riot.csp</code>)</p> </li>       <li> <p>Fix multiple global mixin <a href="/misc/goto?guid=4958990246742700984">riot#1699</a> - thanks to <a href="/misc/goto?guid=4958990246827369179">@wintercounter</a></p> </li>       <li> <p>Add better support for the svg tags <a href="/misc/goto?guid=4958990246910049014">riot#1199</a></p> </li>      </ul> </li>     <li> <p><strong>observable</strong></p>      <ul style="list-style-type:square">       <li> <p>Now 30% faster [observable#18]https://github.com/riot/observable/pull/18 - thanks to <a href="/misc/goto?guid=4958990246998260902">@Ke-</a></p> </li>       <li> <p>Add events namespace support <a href="/misc/goto?guid=4958990247083109045">observable#15</a> - thanks again to <a href="/misc/goto?guid=4958990246998260902">@Ke-</a></p> </li>      </ul> </li>     <li> <p><strong>cli</strong></p>      <ul style="list-style-type:square">       <li> <p>Add the <code>--new</code> option to easily create new riot components</p> </li>       <li> <p>Fix symlinks issues thanks to the <code>shelljs@0.7.0</code> upgrade <a href="/misc/goto?guid=4958990247178449588">cli#14</a></p> </li>      </ul> </li>     <li> <p><strong>compiler</strong></p>      <ul style="list-style-type:square">       <li> <p>Add the <code>pug</code> parser, <code>jade</code> will be deprecated in the next riot major release</p> </li>       <li> <p>Add the possibility to pass custom parsers options directly via the <code>compiler.compile</code> method through the <code>parserOptions: {js: {}, template: {}, style: {}}</code> key <a href="/misc/goto?guid=4958990247273335097">compiler#64</a></p> </li>       <li> <p>Fix un-escape parser options in html <a href="/misc/goto?guid=4958990247367307109">compiler#63</a></p> </li>      </ul> </li>    </ul>    <p>下载地址:</p>    <ul>     <li> <p><a href="/misc/goto?guid=4958990247447508090" rel="nofollow"><strong>Source code</strong> (zip)</a></p> </li>     <li> <p><a href="/misc/goto?guid=4958990247535669352" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></p> </li>    </ul>