[plt-scheme] Unexpected error using "static-files-path"
There was a bug in the insta module. It is fixed in SVN now. If you
want to fix it on your installation, change line 64 in
web-server/insta/insta.ss from
#:extra-files-path extra-files-path
to
#:extra-files-paths (list extra-files-path)
I apologize for the inconvenience
Jay
On Mon, Dec 1, 2008 at 2:48 AM, Ferreira Maurizio
<maurizio.ferreira at seling.it> wrote:
> I tried the following example, taken from the
> tutorial "Continue: Web Applications in PLT Scheme "
> As i start the program I receive the following error:
>
> procedure application: procedure: #<procedure:serve/servlet>;
> does not expect an argument with keyword #:extra-files-path;
> arguments were: #<procedure:start> #:extra-files-path #<path:htdocs>
> #:launch-browser? #t
>
> Any suggestion ?
> Regards
> Maurizio.
>
> #lang web-server/insta
> (define (start request)
> '(html (head (title "Testing"))
> (link ((rel "stylesheet")
> (href "/test-static.css")
> (type "text/css")))
> (body (h1 "Testing")
> (h2 "This is a header")
> (p "This is " (span ((class "hot")) "hot") "."))))
>
> (static-files-path "htdocs")
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
--
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://jay.teammccarthy.org
"The glory of God is Intelligence" - D&C 93