1 ! Copyright (C) 2005, 2006 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
4 USING: furnace help httpd html kernel sequences words strings
7 : show-help ( topic -- )
10 [ help ] with-html-stream
13 : string>topic ( string -- topic )
14 " " split dup length 1 = [ first ] when ;
17 { "topic" "handbook" v-default string>topic }
20 M: link browser-link-href
21 link-name [ \ f ] unless* dup word? [
24 dup [ string? ] all? [ " " join ] when
25 [ show-help ] curry quot-link
28 "help" "show-help" "libs/furnace/tools" web-app