local function sendAttr(connection, attr, val, unit) --Avoid error when Nil is in atrib=val pair. if not attr or not val then return else if unit then unit = ' ' .. unit else unit = '' end connection:send("
  • ".. attr .. ": " .. val .. unit .. "
  • \n") end end return function (connection, req, args) dofile("httpserver-header.lc")(connection, 200, 'html') connection:send('A Lua script sample

    Node info

    ') end