The power of components in your template-based Python web app.

Better than include and macros.

  • Simple: easier to read and use because they look like regular HTML.
  • Practical: just regular Jinja files and no need to import them.
  • Composable: can wrap content (HTML, other components, etc.) in a natural way.
  • Encapsulated: can link to their own css or js files and be copy/pasted to other projects with no modifications.
Card rendered Card code
Just what you were looking for?
See the documentation

Say goodbye to spaghetti templates.

We want our Python code to be easy to understand and test.

Template code, however, often fails even basic code standards: long methods, deep conditional nesting, and mystery variables everywhere.

But when it's built with components, you see where everything is, understand what are the possible states of every piece of UI, and know exactly what data need to have.

You can replace all your templates with components.
Using {% extend %} with a base layout? Create a Page component instead!

Quick to write, amazing to use.

This is how a component looks like:

Ready to get going? Engage:

See the Documentation
Millions of people clicked a button in the last week alone!
Back to top