Skip to content

[Markup] Expand document head metadata contract #254

@cssbruno

Description

@cssbruno

Source: split follow-up from #237 after the #61 routing/layout/view baseline.

Scope:

  • Add head metadata beyond the current title, description, canonical, image, app Head, Open Graph, and Twitter card slice.
  • Evaluate robots/noindex, sitemap metadata, preload, and prefetch as explicit .gwdk source metadata or config-owned declarations.
  • Keep head management out of view {} markup unless a later syntax decision explicitly changes that contract.
  • Preserve generated HTML escaping and URL safety for any metadata-derived head output.

Acceptance criteria:

  • Source syntax and ownership are documented in docs/language/markup.md, docs/language/syntax.md, or the relevant reference doc before implementation is advertised.
  • Parser, IR, buildgen, appgen/SSR if applicable, manifest/sitemap, and route/report surfaces are updated together for any new stable metadata.
  • Generated output tests cover escaping, URL policy, deterministic ordering, and SPA/SSR parity where applicable.
  • Deferred metadata remains clearly documented as planned, not silently accepted.

Related: #61, #237.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerCompiler internals, pipeline, and generated metadataruntimeGOWDK Runtime packages and server behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions