swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit 133a8f8da9a307887603a18c3575a8fd28c3572a
parent 51e53b5b9dfb3ae6fd99778ec35f118375cb5300
Author: uriel@soma <unknown>
Date:   Sun, 25 Oct 2009 09:31:01 +0000

Allow overriding the manual section listing page (just create an index.md or index.html in the dir where wman is enabled).
Diffstat:
Mapps/wman/app.rc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/wman/app.rc b/apps/wman/app.rc @@ -38,7 +38,7 @@ fn wman_init { synth_paths=($wman_base_uri$wman_cat_list'/') - if(~ $req_path $wman_base_uri) + if(~ $req_path $wman_base_uri && ~ $"handler_body_main '') handler_body_main=(tpl_handler apps/wman/section_list.tpl) if not if(~ $req_path $wman_base_uri^*) { #^*/[a-z0-9]*[a-z]* $wman_base_uri^*/*[a-z]*[a-z0-9] $wman_base_uri^*/[a-z])