From 1817ed97ab708df9ab28125e04852809e8350473 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Mon, 18 Feb 2008 15:52:40 +0000 Subject: [PATCH 1/1] Some more mod_autoindex directives --- lib/mod_autoindex.dtl | 8 ++++++++ src/plugins/apache.sml | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/lib/mod_autoindex.dtl b/lib/mod_autoindex.dtl index fc7742e..3028fd3 100644 --- a/lib/mod_autoindex.dtl +++ b/lib/mod_autoindex.dtl @@ -5,6 +5,14 @@ extern val addDescription : string -> [no_spaces] -> [^Vhost]; {{See the Apache documentation for AddDescription.}} +extern val addIcon : location -> [no_spaces] -> [^Vhost]; +{{See the + Apache documentation for AddIcon.}} + +extern val indexIgnore : [no_spaces] -> [^Vhost]; +{{See the + Apache documentation for IndexIgnore.}} + extern type autoindex_width; {{A setting for how wide some column should be}} extern val autofit : autoindex_width; diff --git a/src/plugins/apache.sml b/src/plugins/apache.sml index 97bfc69..a612cb0 100644 --- a/src/plugins/apache.sml +++ b/src/plugins/apache.sml @@ -914,6 +914,17 @@ val () = Env.action_two "addDescription" app (fn pat => (write " "; write pat)) pats; write "\n")) +val () = Env.action_two "addIcon" + ("icon", Env.string, "patterns", Env.list Env.string) + (fn (icon, pats) => + case pats of + [] => () + | _ => (write "\tAddIcon \""; + write icon; + write "\""; + app (fn pat => (write " "; write pat)) pats; + write "\n")) + val () = Env.action_one "indexOptions" ("options", Env.list autoindex_option) (fn opts => @@ -927,6 +938,15 @@ val () = Env.action_one "indexOptions" (write "="; write arg)) arg)) opts; write "\n")) +val () = Env.action_one "indexIgnore" + ("patterns", Env.list Env.string) + (fn pats => + case pats of + [] => () + | _ => (write "\tIndexIgnore"; + app (fn pat => (write " "; write pat)) pats; + write "\n")) + val () = Env.action_one "set_indexOptions" ("options", Env.list autoindex_option) (fn opts => -- 2.20.1