#
hs.httpserver.hsminweb.cgilua.lp
Support functions for the CGILua compatibility module for including and translating Lua template pages into Lua code for execution within the Hammerspoon environment to provide dynamic content for http requests.
The most commonly used function is likely to be
If your template file requires the ability to create variables in the Hammerspoon global environment, access the global environment directly through _G
.
Note that the above considerations only apply to creating new "global" variables. Any currently defined global variables (for example, the hs
table where Hammerspoon module functions are stored) are available within the template file as long as no local or CGILua environment variable shares the same name (e.g. _G["hs"]
and hs
refer to the same table.
See the documentation for the
#
API Overview
Functions - API calls offered directly by the extension
compile include translate