Perl 的 Web 框架 Mojolicious 2.0 發布

openkk 13年前發布 | 10K 次閱讀 Perl

Mojolicious 是下一代的 Perl 語言的 Web 編程框架,提供強大的功能而無需第三方包依賴,功能包括:RESTful 的路由、插件管理、Perl風格的模板系統、會話管理、簽名的 cookie、靜態文件服務、測試框架、文件級的Unicode支持等等。

同時 Mojolicious 也是一個全堆棧的 HTTP/1.1 和 WebSocket 的客戶端和服務器端的實現,還包括 TLS、Gonjour、IDNA、Comet、Chunking和 multipart支持。內建支持 Linux epoll、kqueue以及Unix Domain套接字的Web服務器。自動檢測 CGI, FastCGI, 和 PSGI。提供 JSON 以及 XML/HTML5 的解析器,支持 CSS3 的選擇器。

Features

    An amazing real-time web framework supporting a simplified single file mode through Mojolicious::Lite.

        Powerful out of the box with RESTful routes, plugins, Perl-ish templates, session management, signed cookies, testing framework, static file server, I18N, first class unicode support and much more for you to discover.

    Very clean, portable and Object Oriented pure Perl API without any hidden magic and no requirements besides Perl 5.10.1 (although 5.12+ is recommended, and optional CPAN modules will be used to provide advanced functionality if they are installed).
    Full stack HTTP 1.1 and WebSocket client/server implementation with IPv6, TLS, Bonjour, IDNA, Comet (long polling), chunking and multipart support.
    Built-in non-blocking I/O web server supporting libev and hot deployment, perfect for embedding.
    Automatic CGI and PSGI detection.
    JSON and HTML5/XML parser with CSS3 selector support.
    Fresh code based upon years of experience developing Catalyst.

項目地址:http://mojolicious.org/

Changes:

1. Perl 5.10.1: 提升了性能
2. Morbo: 可自啟動的開發用 Web 服務器
3. 內置對 libev 事件循環的支持
4. 使用事件對框架進行擴展
5. Mount 插件允許嵌入整個應用
6. 產品級的 Web 服務器更加友好
7. Collections make Web scraping fun.
8. 可方便進行 WebSocket 編程測試

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