📄 config.lua
字号:
-- 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -