mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-16 16:25:54 +01:00
18 lines
443 B
Lua
18 lines
443 B
Lua
require "Lua.helper.view"
|
|
--[[require "Lua.delphi.datasets"]]
|
|
dump = require "Lua.inspect"
|
|
json = require "dkjson"
|
|
|
|
function htmlize(s)
|
|
s = s:gsub('&', '&')
|
|
s = s:gsub('<', '<')
|
|
s = s:gsub('>', '>')
|
|
if s == ' ' then
|
|
s = ' '
|
|
end
|
|
return s
|
|
end
|
|
|
|
function dumppre(value)
|
|
return '<pre style="padding: 10px; border: thin #a0a0a0 solid; background-color: #f0f0f0">' .. htmlize(dump(value)) .. '</pre>'
|
|
end |