Perl的Web開發框架 Mojolicious 2.10 發布
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 的選擇器。
特性:
- 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/
Mojolicious 2.10 今日發布了,它的主要變化如下:
1. This release adds a send_frame method to Mojo::Transaction::WebSocket.
2. It adds myn events.
3. It changes the syntax for binary messages in Mojo::Transaction::WebSocket.
4. It adds a max_memory_size attribute to Mojo::Asset::Memory.
5. It adds an is_file method to Mojo::Asset and Mojo::Asset::File.
6. All is_done methods are deprecated in favor of is_finished.
7. The done event in Mojo::IOLoop::Trigger has been renamed to finish.
8. Support has been added for new HTTP status codes from draft-nottingham-http-new-status.
9. A small WebSocket upgrade bug has been fixed in Mojo::Server::Daemon