From c6aaa2c52c4ca3c9c3ecd95ceed29bc75b3be1a3 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 2 Feb 2012 22:19:45 +0000 Subject: 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 --- app/template-ajax.lsp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'app/template-ajax.lsp') 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) %> -- cgit v1.2.3