You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
307 B

local function try_cached_html(vr)
local p = vr.phys.path .. '.html'
st, res = vr:stat(p)
if st and st.is_file then
-- found the file
vr.phys.path = p
elseif res == lighty.HANDLER_WAIT_FOR_EVENT then
return lighty.HANDLER_WAIT_FOR_EVENT
end
-- ignore other errors
end
actions = try_cached_html