Welcome to the CHICKEN Scheme pasting service

css injection pasted by mario-goulart on Thu Nov 8 17:45:51 2012

(use awful html-utils)

(enable-sxml #t)

(define (define-my-page path content)
  (define-page path
    (lambda ()
      (with-request-variables ((css as-symbol))
        (html-page (content)
                   css: (case css
                          ((foo) "foo.css")
                          ((bar) "bar.css")
                          (else #f)))))))

(define-my-page (main-page-path)
  (lambda ()
    "Hi"))

BUG FIX added by mario-goulart on Thu Nov 8 17:47:47 2012

(use awful html-utils)

(enable-sxml #t)

(define (define-my-page path content)
  (define-page path
    (lambda ()
      (with-request-variables ((css as-symbol))
        (html-page (content)
                   css: (case css
                          ((foo) "foo.css")
                          ((bar) "bar.css")
                          (else #f)))))
    no-template: #t))

(define-my-page (main-page-path)
  (lambda ()
    "Hi"))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which module provides `load-relative'?
Visually impaired? Let me spell it for you (wav file) download WAV