diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-03-03 22:12:09 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-03-03 22:12:09 +0000 |
commit | 14e124d2ebb81bb6e3f6af0b13326339c48ced4b (patch) | |
tree | 9d1bda76d4634c5852a34ce646bb0ff123add3ee /app/debug-html.lsp | |
parent | a29dfc6a49adaf2b9cbf348995e07aeeb4041cbf (diff) | |
download | acf-core-14e124d2ebb81bb6e3f6af0b13326339c48ced4b.tar.bz2 acf-core-14e124d2ebb81bb6e3f6af0b13326339c48ced4b.tar.xz |
Change HTML views to use htmlviewfunctions.displayheader
Diffstat (limited to 'app/debug-html.lsp')
-rw-r--r-- | app/debug-html.lsp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/app/debug-html.lsp b/app/debug-html.lsp index bf593f7..32f82d2 100644 --- a/app/debug-html.lsp +++ b/app/debug-html.lsp @@ -1,9 +1,16 @@ <% local data, viewlibrary, page_info, session = ... %> <% htmlviewfunctions = require("htmlviewfunctions") %> -<h1>Debugging</h1> -<h2>View Data:</h2> -<%= htmlviewfunctions.cfe_unpack(data) %> -<h2>Session:</h2> -<%= htmlviewfunctions.cfe_unpack(session) %> -<h2>Page Info:</h2> -<%= htmlviewfunctions.cfe_unpack(page_info) %> + +<% +local header_level = htmlviewfunctions.displayheader(cfe({label="Debugging"}), page_info) +header_level = htmlviewfunctions.incrementheader(header_level) + +htmlviewfunctions.displayheader(cfe({label="View Data:"}), page_info, header_level) +io.write(htmlviewfunctions.cfe_unpack(data)) + +htmlviewfunctions.displayheader(cfe({label="Session:"}), page_info, header_level) +io.write(htmlviewfunctions.cfe_unpack(session)) + +htmlviewfunctions.displayheader(cfe({label="Page Info:"}), page_info, header_level) +io.write(htmlviewfunctions.cfe_unpack(page_info)) +%> |