Composing pages

Reference for the HTML patterns that assemble pages from parts — bindings that compute values, templates that render lists, includes that pull content from other documents, filters that transform values, and elements that exist only during composition.

Most of these are schema-free: they work on plain HTML and the site graph with no modeled type at all. One is schema-poweredMethod Elements invoke a Method declared on a schema, so they require modeling a type first. See What modeling unlocks in pages for the progression.

These same composition patterns also work for XML documents — RSS/Atom feeds, sitemaps, SVG, and XHTML (any +xml content type, plus application/xml and text/xml). An XML document is parsed and composed with the same directives — including microdata @read resolution — and served as well-formed XML (empty elements self-close, tag/attribute case is preserved, and the <?xml … ?> declaration is kept). The HTML-only conveniences that do not apply are JSON-LD content negotiation and xmlns: declaration stripping. See XML documents for the full reference.

Pages in this group

See also