module(..., package.seeall); local bobot = require("bobot") local my_path = debug.getinfo(1, "S").source:match[[^@?(.*[\/])[^\/]-$]] --local devices=devices function load_file (filename) local served, err = io.open(my_path..filename, "r") if served then return served:read("*all") else bobot.debugprint("Error opening", my_path..filename,":", err) end end function parse_params(s) local params={} for k,v in string.gmatch(s, '([%w%%%_%-]+)=([%w%%%_%-]+)') do bobot.debugprint('param', k, v) params[k]=v end return params end local page404="