extern val home : homedir_path -> your_path;
{{Shortcut to denote a subdirectory of your home directory}}
+extern val homeS : no_spaces -> no_spaces;
+{{Use this version when it doesn't matter if the output is a real filesystem
+ path.}}
+
val mailmanHcoop = mailmanWebHost "lists.hcoop.net";
{{Configure your domain to have its Mailman mailing lists served on the web at
lists.hcoop.net.}}
(fn dir => Domain.yourPath (OS.Path.concat (Domain.homedir (), dir))
handle _ => false)
-val () = Env.registerFunction ("home",
- fn [(EString dir, _)] => (SOME (EString (OS.Path.concat (Domain.homedir (), dir)), dl)
- handle _ => NONE)
- | _ => NONE)
+fun addHome name = Env.registerFunction (name,
+ fn [(EString dir, _)] => (SOME (EString (OS.Path.concat (Domain.homedir (), dir)), dl)
+ handle _ => NONE)
+ | _ => NONE)
+
+val () = addHome "home"
+val () = addHome "homeS"
end