Paste: doc serve

Author: ceninan
Mode: factor
Date: Tue, 6 Apr 2010 16:06:26
Plain Text |
USING: math kernel accessors http.server http.server.dispatchers
furnace furnace.actions furnace.sessions furnace.redirection
html.components html.forms fry namespaces urls webapps.help ;
IN: webapps.docs

: <docs-app> ( -- responder )
    dispatcher new-dispatcher
        "path-to-docs-here" <help-webapp> "" add-responder ;

: run-docs ( -- )
    <docs-app>
        main-responder set-global
    8080 httpd ;

MAIN: run-docs

Annotation: clean up USING:

Author: ceninan
Mode: factor
Date: Tue, 6 Apr 2010 16:49:17
Plain Text |
! Copyright (C) 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: http.server http.server.dispatchers namespaces webapps.help ;
IN: webapps.docs

: <docs-app> ( -- responder )
    dispatcher new-dispatcher
        "path-to-docs-here" <help-webapp> "" add-responder ;

: run-docs ( -- )
    <docs-app>
        main-responder set-global
    8080 httpd ;

MAIN: run-docs

New Annotation

Summary:
Author:
Mode:
Body: