Perl 的 Web 框架,Mojolicious 3.0 發布
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 的選擇器。
Mojolicious 3.0 發布了,主要改進包括:
- TLS and IPv6: Support for both has been greatly improved.
- Commands: The command system has been completely revamped. (example)
- Plugins: Generator and CPAN upload commands make extending Mojolicious easier than ever. (example)
- Event loops: Mojolicious no longer needs to control the event loop. (example)
- Content negotiation: Write more RESTful web services. (example)
- JSON Pointers: Many features dealing with JSON got a lot smarter. (example)
- Flexible router: Routes can now be rearranged. (example)
- Flexible renderer: Serve templates and static files from as many DATA sections and paths as you like. (example)
- Asset plugins: Easily bundle assets such templates and static files with plugins. (example)
- Not found page: Is now actually a development tool.
- Hypnotoad: Doesn't require a separate configuration file anymore. (example)
- WebSockets: Fully RFC 6455 compliant. (example)
- Relaxed placeholders: Now look like "/#foo" instead of "/(.foo)". (example)
- I18N plugin: Maintained as a separate distribution.
完整內容請看 Changes
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!