From e4b39f4255aff6f974eb1a1e4e78fe01587814aa Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 28 Jul 2008 06:48:16 +0000 Subject: use <% %> instead of git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed --- app/template-stream.lsp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'app/template-stream.lsp') diff --git a/app/template-stream.lsp b/app/template-stream.lsp index 1a5f3c0..88713fd 100644 --- a/app/template-stream.lsp +++ b/app/template-stream.lsp @@ -1,8 +1,8 @@ - +<% local viewtable, viewlibrary, pageinfo, session = ... %> Status: 200 OK -Content-Type: - -Content-Disposition: attachment; filename="" - - - +Content-Type: <% print(viewtable.option or "application/octet-stream") %> +<% if viewtable.label ~= "" then %> +Content-Disposition: attachment; filename="<%= viewtable.label %>" +<% end %> +<% io.write("\n") %> +<%= viewtable.value %> -- cgit v1.2.3