summaryrefslogtreecommitdiffstats
path: root/lib/viewfunctions.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/viewfunctions.lua')
-rw-r--r--lib/viewfunctions.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/viewfunctions.lua b/lib/viewfunctions.lua
index 5965d16..a45831c 100644
--- a/lib/viewfunctions.lua
+++ b/lib/viewfunctions.lua
@@ -1,4 +1,5 @@
require("html")
+require("session")
function displayitem(myitem)
if not myitem then return end
@@ -241,3 +242,13 @@ function displaypagination(page_data, page_info)
io.write("</div>")
end
end
+
+-- give a cfe and get back a string of what is inside
+-- great for troubleshooting 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>" .. html.html_escape(value) .. "</pre>"
+ return value
+ end
+end