JavaScript 的 MVP 框架,Riot.js 2.3.13 發布下載

jopen 8年前發布 | 5K 次閱讀

Riot.js 2.3.13 發布,此版本更新內容如下:

  • riot

    • Fix serverside rendering issue using the value attribute on thetextarea, optiontags more info

    • Fix nestedyieldslot issue more info

    • Add support foryieldslots serverside

    • Add better strategy for css injection more info

  • observable

    • Fix the issue with the errors swallowed in the callbacks more details, you no longer needtag.on('error', cb)to catch them

  • compiler

    • Fix riot#1495 : Warning of input tag value - Avoids warnings for date/datetime/time/month/email/color types with expression in its value.

    • Fix riot#1488 : Cannot read property ‘replace’ of undefined when compiling in Node a tag with an import in its less stylesheet – Thanks to @jrx-jsj

    • Fix riot#1448 : Riot compiler parses and removes content from string declaration. This is partial fix, you need to write<\/script>for closing script tags within quoted strings.

    • Revised regex that matches<pre>tags.

  • tmpl

    • Fix issues with double quotes.

  • cli

    • Fix for thewatchtask in case of errors, it will keep running re-starting a new subprocess forever on any error

    • Add betterversionoutput showing only theriot-compilerand theriot-cliversion currently in use

  • route

下載:https://github.com/riot/riot/archive/v2.3.13.zip

Riot.js是一個客戶端模型-視圖-呈現(MVP)框架并且它非常輕量級甚至小于1kb.盡管他的大小令人難以置信,所有它能構建的有如下:一個模板引擎,路由,甚至是庫和一個嚴格的并具有組織的MVP模式。當模型數據變化時視圖也會自動更新。

來自: http://www.oschina.net/news/69794/riot-js-2-3-13

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!