Genro Builders

Getting started

  • Getting started
    • Install
    • A first HTML page
    • What just happened
    • SVG and CSS
    • Next steps

Builders

  • Builders overview
    • The three objects
    • The two phases
    • Grammar declaration
    • Handler subclassing
    • What lives where
    • What is here, and what is next
  • Decorators
    • At a glance
    • @element
    • @abstract
    • Sub-builders
    • Data-elements
    • Declarative bodies
  • Common patterns
    • ._ chaining — climbing back to the parent
      • SVG
      • CSS
      • When ._ is not needed
    • Render targets — where the output goes
      • Inline target
      • Registered targets, one per mode
      • Target semantics
    • node_id and lookup
    • Render modes

Grammars

  • HTML grammar
    • Purpose
    • Quick start
    • Elements
    • Common patterns
      • Attributes with reserved Python keywords
      • Inline CSS via kwargs
      • Chaining leaves with ._
    • Render
    • Validation rules
    • Worked examples
    • Known limitations
    • References
  • SVG grammar
    • Purpose
    • Quick start
    • Elements
    • Common patterns
      • Kebab-case attributes
      • Chaining leaves with ._
      • viewBox and coordinate space
    • Render
    • Validation rules
    • Worked examples
    • Known limitations
    • References
  • CSS grammar (level 1)
    • Purpose
    • Quick start
    • Elements
    • Common patterns
      • Property declarations as kwargs
      • Selectors as children
      • Chaining with ._
      • Round-trip from CSS source
    • Render
    • Validation rules
    • Worked examples
    • Known limitations
    • References
Genro Builders
  • Search


© Copyright 2025, Softwell S.r.l..

Built with Sphinx using a theme provided by Read the Docs.