Lua 的 Web 工具包 LWT
LWT (Lua Web Tools) 可讓你使用 Lua 開發 Web 應用,并可直接在 Apache 上運行。LWT 的核心功能通過一個 Apache 的模塊(mod_lwt)來提供。另外 LWT 提供可選的 Lua 模塊用來訪問數據庫和緩存。
- Apache module. LWT provides an Apache HTTP server module that handles requests by invoking Lua scripts. The module provides the core functionality for creating web applications.
- Template engine. LWT provides a template engine that blends Lua with HTML/XML. The engine supports substitutions and logic in a way that is natural to both Lua and HTML/XML. This makes it easy to develop web applications with a clean separation of UI logic in Lua and layout in HTML.
- Full request control. LWT provides full control over web requests, including request status, content type, input and output. This faciliates the creation of JSON web services, and other uses of HTTP.
- File uploads. LWT supports HTTP file uploads from a web browser.
- WSAPI. LWT supports the WSAPI standard, and can be used to run WSAPI applications directly in the Apache HTTP server.
- Databases. The IS module supports the access to information system in an SQL injection safe way. Currently, the module supports MySQL, Sybase, SQL Server and SQLite.
- Caching. The cache module supports the use of caches, currently memcached.
本文由用戶 fmms 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!