summaryrefslogtreecommitdiffstats
path: root/app/template-ajax.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'app/template-ajax.lsp')
-rw-r--r--app/template-ajax.lsp8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/template-ajax.lsp b/app/template-ajax.lsp
new file mode 100644
index 0000000..96e6378
--- /dev/null
+++ b/app/template-ajax.lsp
@@ -0,0 +1,8 @@
+<% local view, viewlibrary, page_info = ... %>
+<% require("json") %>
+Status: 200 OK
+Content-Type: "application/json"
+<% io.write("\n") %>
+<%
+ print(json.encode(view))
+%>