delphimvcframework/samples/winecellarWITHDORM/Win32/Debug/Lua/boot.lua

18 lines
443 B
Lua
Raw Normal View History

2013-11-11 02:05:03 +01:00
require "Lua.helper.view"
--[[require "Lua.delphi.datasets"]]
dump = require "Lua.inspect"
json = require "dkjson"
function htmlize(s)
s = s:gsub('&', '&')
s = s:gsub('<', '&lt;')
s = s:gsub('>', '&gt;')
if s == ' ' then
s = '&nbsp;'
end
return s
end
function dumppre(value)
return '<pre style="padding: 10px; border: thin #a0a0a0 solid; background-color: #f0f0f0">' .. htmlize(dump(value)) .. '</pre>'
end