ThomasHintz / keep-the-records

Keep The Records - Awana Record Keeping
keeptherecords.com
8 stars 1 forks source link

Instantiate awful in program instead of from command line #58

Open ThomasHintz opened 11 years ago

ThomasHintz commented 11 years ago

Provides better control.

ThomasHintz commented 11 years ago

From awful docs:

Using SXML in a per-page basis

(use awful html-tags)

(define-page "/strings" (lambda () (

id: "content" "Hi, this is awful " (awful-version))))

(define-page "/sxml" (lambda () `(div (@ (id "content")) "Hi, this is awful " ,(awful-version))) use-sxml: #t)

(define-page "/sxml-with-html-tags" (lambda () (parameterize ((generate-sxml? #t)) (

id: "content" "Hi, this is awful " (awful-version)))) use-sxml: #t)