Skip to content

Template-only / class-less components #17

Closed as not planned
Closed as not planned

Description

@JuroOravec

Define a component from a template file alone, with no Python class.

Why: parity with django-components#1240. Lets simple, logic-free components live as a single template file.

Current state: CitryTemplate exists but is bound to a component class (packages/py/citry/citry/citry_template.py); the only registration path requires a Component subclass (component_registry.py); autodiscovery imports .py files only (autodiscovery.py). There is no class-less path today.

Scope: synthesize a lightweight Component from a CitryTemplate with no user class; grow autodiscovery a template-file path; degrade typed-inputs/validation gracefully when no Kwargs/Slots schema is declared.

Upstream: django-components#1240.

Parked: design first, not yet scheduled.

Activity

  1. added
    enhancement
    on Jul 1, 2026
  2. JuroOravec commented on Oct 28, 2026

    @JuroOravec
    MemberAuthor

    Closing for now: nothing planned depends on class-less components. If you need them, reopen this issue and describe your use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions