From 19b53b147471298d093a81a0fdb102584dc28ae9 Mon Sep 17 00:00:00 2001 From: Mike Mason Date: Fri, 30 Nov 2007 16:20:37 +0000 Subject: Put the cfe_unpack function in html. This helps with cfe troubleshooting. Should have been in html.lua in the first place. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@395 ab2d0c66-481e-0410-8bed-d214d4d58bed --- lib/format.lua | 12 ------------ lib/html.lua | 12 ++++++++++++ 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 = "
" .. value .. "
" - 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 ( "" .. (v.label or "" ) .. "" ) 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 = "
" .. value .. "
" + return value + end + +end + -- cgit v1.2.3