summaryrefslogtreecommitdiffstats
path: root/app/template-ajax.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-02-02 22:19:45 +0000
committerTed Trask <ttrask01@yahoo.com>2012-02-02 22:19:45 +0000
commitc6aaa2c52c4ca3c9c3ecd95ceed29bc75b3be1a3 (patch)
tree96c67df79fc817e031d724181b1e759acb72f20a /app/template-ajax.lsp
parentdf80810456f4a13d48eba24bfa1fa79b360c8426 (diff)
downloadacf-core-c6aaa2c52c4ca3c9c3ecd95ceed29bc75b3be1a3.tar.bz2
acf-core-c6aaa2c52c4ca3c9c3ecd95ceed29bc75b3be1a3.tar.xz
Changed mvc and www view_resolvers to make auto_view work
Templates (for www) now receive a viewfunc, rather than using viewfile. Actions without views with viewtype of html, ajax, stream, or serialized will now be displayed using standard code. Fixed bug in acf-cli parameters messing up action
Diffstat (limited to 'app/template-ajax.lsp')
-rw-r--r--app/template-ajax.lsp6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/template-ajax.lsp b/app/template-ajax.lsp
index 96e6378..bb7fc9f 100644
--- a/app/template-ajax.lsp
+++ b/app/template-ajax.lsp
@@ -1,8 +1,6 @@
-<% local view, viewlibrary, page_info = ... %>
+<% local view, viewlibrary, page_info, session = ... %>
<% require("json") %>
Status: 200 OK
Content-Type: "application/json"
<% io.write("\n") %>
-<%
- print(json.encode(view))
-%>
+<% page_info.viewfunc(view, viewlibrary, page_info, session) %>