chickadee » awful » set-page-title!

set-page-title! titleprocedure

Set the title for the requested page. This procedure is useful to set the page title dynamically from the page handler (instead of statically, via define-page's title keyword parameter).

This procedure has been introduced in awful 0.35.

Example:

(cond-expand
  (chicken-4
    (use awful))
  (chicken-5
    (import awful)))

(define-page (main-page-path)
  (lambda ()
    (set-page-title! "a title")
    "Hi!"))