Name: Anonymous 2013-09-01 11:42
I'm getting
the code is
I'm trying to get it to work before I change it to (response/xexpr (eval z))
and hello.rktml is
weirdly enough, when I try (eval z) from the command line of drRacket it works
pls help
quasiquote: unbound identifier;
also, no #%app syntax transformer is bound in: quasiquotethe code is
#lang web-server/insta
;; A "hello world" web server
(define x 0)
(define (start request) (response/xexpr `(html (body (h1 ,(number->string x))))))
(define (set-timeout msec thunk) (thread (lambda () (sync (alarm-evt (+ (current-inexact-milliseconds) msec))) (thunk))))
(define (f) (set-timeout 1000 (lambda () (set! x (+ x 1)) (f))))
(f)
(define z (with-input-from-file "hello.rktml" read))
z
(eval z)I'm trying to get it to work before I change it to (response/xexpr (eval z))
and hello.rktml is
`(html (body (h1 ,(number->string x))))weirdly enough, when I try (eval z) from the command line of drRacket it works
pls help