(define-structure plugin plugin-interface (open scsh scheme plugin-utilities httpd-responses crlf-io) (begin (define (main req) (let ((news-input (open-input-file "news.txt"))) (let loop () (let ((next-line (read-crlf-line news-input))) (if (eof-object? next-line) (send/finish (make-response http-status/ok (status-code->text http-status/ok) (time) "text/html" '() (make-writer-body (lambda (out options) (format out "
That's it..."))))) (begin (send/suspend (lambda (next-url) (make-response http-status/ok (status-code->text http-status/ok) (time) "text/html" '() (make-writer-body (lambda (out options) (format out "
read more..." next-line next-url)))))) (loop))))))) ))