Some more mod_autoindex directives
authorAdam Chlipala <adamc@hcoop.net>
Mon, 18 Feb 2008 15:52:40 +0000 (15:52 +0000)
committerAdam Chlipala <adamc@hcoop.net>
Mon, 18 Feb 2008 15:52:40 +0000 (15:52 +0000)
lib/mod_autoindex.dtl
src/plugins/apache.sml

index fc7742e..3028fd3 100644 (file)
@@ -5,6 +5,14 @@ extern val addDescription : string -> [no_spaces] -> [^Vhost];
 {{See <a href="http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html#adddescription">the
   Apache documentation</a> for <tt>AddDescription</tt>.}}
 
 {{See <a href="http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html#adddescription">the
   Apache documentation</a> for <tt>AddDescription</tt>.}}
 
+extern val addIcon : location -> [no_spaces] -> [^Vhost];
+{{See <a href="http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html#addicon">the
+  Apache documentation</a> for <tt>AddIcon</tt>.}}
+
+extern val indexIgnore : [no_spaces] -> [^Vhost];
+{{See <a href="http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html#indexignore">the
+  Apache documentation</a> for <tt>IndexIgnore</tt>.}}
+
 extern type autoindex_width;
 {{A setting for how wide some column should be}}
 extern val autofit : autoindex_width;
 extern type autoindex_width;
 {{A setting for how wide some column should be}}
 extern val autofit : autoindex_width;
index 97bfc69..a612cb0 100644 (file)
@@ -914,6 +914,17 @@ val () = Env.action_two "addDescription"
                       app (fn pat => (write " "; write pat)) pats;
                       write "\n"))
 
                       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 =>
 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"))
 
                                               (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 =>
 val () = Env.action_one "set_indexOptions"
         ("options", Env.list autoindex_option)
         (fn opts =>