24 lines
504 B
Plaintext
24 lines
504 B
Plaintext
import std.regex;
|
|
|
|
const string url_root = "/";
|
|
|
|
const string site_title = "This is a Title";
|
|
const string site_subtitle = "but this is a subtitle";
|
|
|
|
const bool nav_tree_vert = false;
|
|
|
|
string[StaticRegex!char] handlers;
|
|
|
|
void init_handlers() {
|
|
handler!("(.*).md").add("contrib/Markdown.pl");
|
|
handler!("changelog").add("changelog.sh");
|
|
}
|
|
|
|
template handler(string pattern) {
|
|
void add(string h) {
|
|
try {
|
|
handlers[ctRegex!(pattern)] = h;
|
|
} catch (std.regex.Exception re) { return; }
|
|
}
|
|
}
|