⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dispatcher.lua

📁 cgi for lua, you can build your personal web site by lua
💻 LUA
字号:
module(..., package.seeall)-- inferred_name refers to the name of the launcher without the extension-- It can be used to set cgilua.script_path to a bootstrap file named-- after the launcher name utilized in the URL_, inferred_name = cgilua.splitpath(cgilua.servervariable("SCRIPT_NAME"))inferred_name = string.gsub(inferred_name, "%.[^%.]-$","")-- Maps a URL prefix into a filepath to be used as a bootstrapperfunction map(prefix, filepath)  local p_info = cgilua.servervariable("PATH_INFO") or ""  local prefix = "^" .. prefix  if p_info:find(prefix) then     script_name = path     cgilua.script_path = script_name     path_info = string.gsub(p_info, prefix, "")  endend

⌨️ 快捷键说明

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