summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/format.lua12
-rw-r--r--lib/html.lua12
2 files changed, 12 insertions, 12 deletions
diff --git a/lib/format.lua b/lib/format.lua
index 74408ff..903a593 100644
--- a/lib/format.lua
+++ b/lib/format.lua
@@ -76,15 +76,3 @@ function string_to_table (delimiter, text)
return list
end
---these maybe moved to html or something like that
-
--- give a cfe and get back a string of what is inside
-function cfe_unpack ( a )
- if type(a) == "table" then
- value = session.serialize("cfe", a)
- value = "<pre>" .. value .. "</pre>"
- return value
- end
-
-end
-
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
+