config.lua

来自「cgi for lua, you can build your personal」· LUA 代码 · 共 37 行

LUA
37
字号
-- CGILua configuration file-- $Id: config.lua,v 1.11 2007/08/21 20:15:55 carregal Exp $-- Emulating old behavior loading file "env.lua" from the script's directory--[[cgilua.addopenfunction (function ()	cgilua.doif ("env.lua")end)--]]-- Optional backward compatibility with the global cgi table-- cgi = cgilua.CGI-- Basic configuration for using sessionsrequire"cgilua.session"cgilua.session.setsessiondir ("/tmp/cgilua/")-- Add cgilua.enablesession() at the beginning of every script which depends-- on sessions.-- Compatibilitycgilua.preprocess = cgilua.handlelpcgilua.includehtml = cgilua.lp.include-- Directories for applications' libraries.-- The following table should be indexed by the virtual path of the application-- and contain the absolute path of the application's Lua-library directory.local app_lib_dir = {	["/t/"] = "/usr/local/src/cgilua/tests",}local package = packagecgilua.addopenfunction (function ()	local app = app_lib_dir[cgilua.script_vdir]	if app then		package.path = app.."/?.lua;"..package.path	endend)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?