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

jopen 9年前發布 | 5K 次閱讀 Riot.js

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 src and charset attributes in <script> tags for reading JavaScript sources from the file system - riot#507

      </li>

    • The compile function can return separate parts by setting the new entities option. These parts have unescaped newlines.

      </li>

    • New attribute options for script and style tags will append/overwrite attributes in the default configuration object of the parser at tag level.

      </li>

    • Fix riot#1261: <pre> tag does not preserve neither \n nor \t. Now whitespace within <pre> tags is always preserved.

      </li>

    • 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: settings.brackets no longer works.

      </li> </ul>

    • riot

      </li>

      • Fix support for riot.render on the old node versions

        </li>

      • Fix loop small issues using

        </li>

      • Fix riot.route will not block not registered links with event.preventDefault

        </li>

      • Add error event on all the riot.observable instances to catch all the possible errors thrown in the callbacks

        </li> </ul>

      • riot-cli

        </li>

        • Add better error messages if a parser is not locally installed

          </li>

        • Add the export option to extract singularly just portions of your tags like css, js or html

          </li>

        • Add the style option to chose the default preprocessor for your tags style

          </li>

        • Add built-in css preprocessor support for sass, scss and less

          </li> </ul> </ul>

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


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