mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-17 00:35:55 +01:00
21 lines
486 B
Lua
21 lines
486 B
Lua
dump = require "Lua.lib.inspect"
|
|
json = require "Lua.lib.dkjson"
|
|
require "userlib.commons"
|
|
|
|
function elua_out(value)
|
|
internal_elua_out(__stringbuilder, tostring(value))
|
|
end
|
|
|
|
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 |