2 HTML Generation
#lang scribble/html | package: scribble-html-lib |
The scribble/html
language provides a way to generate HTML that is different from
scribble/base. The scribble/base
approach involves describing a document that can be rendered to HTML,
Latex, or other formats. The scribble/html approach,
in contrast, treats the document content as HTML format plus escapes.
Specifically, scribble/html is like scribble/text, but with the following changes:
The scribble/html/html, scribble/html/xml, and scribble/html/resource are re-exported, in addition to scribble/text.
Free identifiers that end with : are implicitly quoted as symbols.
When scribble/html is used via require instead of #lang, then it does not change the printing of values, and it does not include the bindings of racket/base.
The scribble/html/resource, scribble/html/xml, and scribble/html/html libraries provide forms for generating HTML as strings to be output in the same way as scribble/text.