summaryrefslogtreecommitdiffstats
path: root/lib/html.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/html.lua')
-rw-r--r--lib/html.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/html.lua b/lib/html.lua
index 7e60c2c..312b0fb 100644
--- a/lib/html.lua
+++ b/lib/html.lua
@@ -243,3 +243,15 @@ function link ( v )
return ( "<a " .. str .. ">" .. (v.label or "" ) .. "</a>" )
end
+
+-- give a cfe and get back a string of what is inside
+-- great for troubleshotting and seeing what is really being passed to the view
+function cfe_unpack ( a )
+ if type(a) == "table" then
+ value = session.serialize("cfe", a)
+ value = "<pre>" .. value .. "</pre>"
+ return value
+ end
+
+end
+