]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/webapps/help/help.factor
webapps.help: prevent duplicate styles in template
[factor.git] / extra / webapps / help / help.factor
index 7f3ebe14decdd30124fbd5138768efee503c9593..1bcff3687aa625a416f60d683dbb795985bdadd1 100644 (file)
@@ -14,6 +14,7 @@ TUPLE: help-webapp < dispatcher ;
 
 :: <search-action> ( help-dir -- action )
     <page-action>
+        { help-webapp "search" } >>template
         [
             "search" param [ unicode:blank? ] trim [
                 help-dir [
@@ -27,7 +28,7 @@ TUPLE: help-webapp < dispatcher ;
             { help-webapp "search" } <chloe-content>
         ] >>display
     <boilerplate>
-        { help-webapp "search" } >>template ;
+        { help-webapp "help" } >>template ;
 
 : help-url ( topic -- url )
     topic>filename "$help-webapp/content/" prepend >url ;