Skip to content

Template rendering #12

@ekmartin

Description

@ekmartin

This is definitely a stretch goal, but if we have time we could allow request handlers to return HTML with a templating data structure similar to the nested lists e.g. Racket uses:

(send/suspend
 (lambda (k-url)
   (response/xexpr
    `(html (head (title "Enter a number"))
           (body
            (form ([action ,k-url])
                  "Enter a number: "
                  (input ([name "number"]))
                  (input ([type "submit"]))))))))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions