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