Skip to content

feat: pyramid_components for HTML elements - #20593

Open
miketheman wants to merge 2 commits into
mainfrom
pyramid-components/framework
Open

miketheman wants to merge 2 commits into
mainfrom
pyramid-components/framework

Conversation

@miketheman

@miketheman miketheman commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

pyramid_components lets a UI unit be defined as a typed Props contract plus a co-located template, and rendered from Jinja2 with a {% component "name", kw=val %} tag.
It ships a Component base class, the props-to-dataclass binding, a module-level registry whose render() is the single path all rendering goes through, the Jinja2 extension, and a Pyramid includeme.

Review other parts of the stack to see how the package remains isolated and the leverage is in defining our own components and calling them in template code.
These are a few admin-related examples that are useful for proving the concepts, before considering more refactoring in the main code for items like common forms behaviors - that should also be explored in admin first.

Signed-off-by: Mike Fiedler miketheman@gmail.com

@miketheman
miketheman added this pull request to stack #20597 September 24, 2026 19:03
@miketheman miketheman changed the title pyramid components/framework feat: pyramid_components for HTML elements Sep 24, 2026
@miketheman miketheman added python Pull requests that update Python code docker Pull requests that update Docker code developer experience Anything that improves the experience for Warehouse devs core-team labels Sep 24, 2026
@miketheman
miketheman marked this pull request as ready for review September 24, 2026 19:07
@miketheman
miketheman requested review from a team as code owners September 24, 2026 19:07

This branch has not been deployed

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

Labels

core-team developer experience Anything that improves the experience for Warehouse devs docker Pull requests that update Docker code python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant