红联Linux门户
Linux帮助

Sailor 0.5发布,Lua的Web开发框架

发布时间:2015-12-03 15:02:21来源:红联作者:empast
Sailor 0.5 发布,该版本更新如下:

对 Sailor 更多测试,集成Travis CI

主要数据库 (MySQL, PostgreSQL, SQLite3)事务

集成多重 Lua->JS 虚拟机,便于在浏览器使用 Lua

提升在浏览器使用 Lua o

Requiring of Lua modules

Accessing JS functions and passing callbacks

Better DOM manipulation

Accessing JS libraries (e.g. JQuery) and using them from Lua

集成内置的 OpenResty's MySQL DB API

在自动测试模拟 OpenResty 环境(Depends on OpenResty)

提升 OpenResty 兼容

提升 Lighttpd 兼容

bug 修复

Queries when using PostgreSQL and SQLite3

Route paths on Xavante and Apache webservers

Adds missing db.close on model:find_all

重大更新

sailor is no longer on global namespace, if you are accessing sailor attributes now you need to require

弃用

sailor.make_url has been copied to page:make_url and will be removed on next versions

sailor.model has been copied to a call metamethod on the model module and will be removed on next version

Sailor 是一个 Lua 语言的 MVC 编程框架。支持跨平台,兼容 mod_lua 或者 mod_pLua, Nginx 的 ngx_lua, 或者任何支持 CGI 的 Web 服务器,如 Civetweb 或者 Mongoose, 前提是必须有 CGILua

软件详情:https://github.com/Etiene/sailor/blob/master/CHANGELOG.md

下载地址:https://github.com/Etiene/sailor/tree/v0.5-alpha

来自:开源中国社区
文章评论

共有 0 条评论