[plt-scheme] Web framework question
Hello everybody!
I try to write a simple blog web-application.
And cannot find the way to change template file without restarting application.
my code is very similar to code from "Continue: Web Applications in
PLT Scheme" http://docs.plt-scheme.org/continue/index.html
(define (render-blog request)
(local ((define (response-generator make-url)
`(html ,(make-cdata #f #f (include-template "template/1.html"))))
(define (insert-post-handler request)
(begin
(insert-post-from-bindings (request-bindings request))
(render-blog request))))
(send/suspend/dispatch response-generator)))
(serve/servlet render-blog
#:port 8080
#:listen-ip #f
#:command-line? #t
#:servlet-path "/")
or http://gist.github.com/362047