JavaScript 的 MVP 框架,Riot.js 2.3.11 發布下載
Riot.js是一個客戶端模型-視圖-呈現(MVP)框架并且它非常輕量級甚至小于1kb.盡管他的大小令人難以置信,所有它能構建的有如下:一個模板引擎,路由,甚至是庫和一個嚴格的并具有組織的MVP模式。當模型數據變化時視圖也會自動更新。
Riot.js 2.3.11 發布下載,此版本更新內容:
-
Compiler
</li>-
Gets rid of the zero-indentation restriction for custom tags, now you can indent these tags, but the opening and closing tag must have exactly the same indentation (length and type). All the tag will be unindented by this amount.
</li> -
Support for
</li>src
andcharset
attributes in<script>
tags for reading JavaScript sources from the file system - riot#507 -
The
</li>compile
function can return separate parts by setting the newentities
option. These parts have unescaped newlines. -
New attribute
</li>options
forscript
andstyle
tags will append/overwrite attributes in the default configuration object of the parser at tag level. -
Fix riot#1261:
</li><pre>
tag does not preserve neither\n
nor\t
. Now whitespace within<pre>
tags is always preserved. -
Fix riot#1358: Empty style in tag (scoped) breaks.
</li> -
Fix riot#1306: Compiler preserves newlines in class objects, causing “Unterminated String Constant” errors.
</li> -
Fix riot#1314:
</li> </ul>settings.brackets
no longer works. -
riot
</li>-
Fix support for
</li>riot.render
on the old node versions -
Fix loop small issues using
</li> -
Fix
</li>riot.route
will not block not registered links withevent.preventDefault
-
Add
</li> </ul>error
event on all theriot.observable
instances to catch all the possible errors thrown in the callbacks -
riot-cli
</li>-
Add better error messages if a parser is not locally installed
</li> -
Add the
</li>export
option to extract singularly just portions of your tags likecss
,js
orhtml
-
Add the
</li>style
option to chose the default preprocessor for your tags style -
Add built-in css preprocessor support for
</li> </ul> </ul>sass
,scss
andless
下載:https://github.com/riot/riot/archive/v2.3.11.zip。
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
-
-
-