Open sourced htmui: a typed HTML component library for Python hypermedia apps.
It has most of the BasecoatUI components (shadcn-like for non-React) plus some utilities.
Also serves as a holm + htmy demo.
| Home | https://www.volfp.com/ |
| GitHub | https://github.com/volfpeter |
Open sourced htmui: a typed HTML component library for Python hypermedia apps.
It has most of the BasecoatUI components (shadcn-like for non-React) plus some utilities.
Also serves as a holm + htmy demo.
I've finally released holm v0.9
The main feature is that you can now have your layouts in plain HTML files!
holm automatically loads HTML layouts, processes them using a simple, fully customizable pipeline, and swaps in child content for you.
The main benefit of this approach is performance: a large, mostly static HTML element tree can be replaced with single component.
If you're curious, check out the guides here: https://volfpeter.github.io/holm/guides/html-layout/
A study by Anthropic(!):
"We found that using AI assistance led to a statistically significant decrease in mastery. On a quiz that covered concepts they’d used just a few minutes before, participants in the AI group scored 17% lower than those who coded by hand, or the equivalent of nearly two letter grades. Using AI sped up the task slightly, but this didn’t reach the threshold of statistical significance."
Some context: layouts are usually mostly static and contain plenty of HTML elements, so rendering them with htmy is not the most efficient solution.
Supporting plain HTML - through htmy's Snippet with Slots - is way better.
Being able to work with plain HTML for layouts is also quite convenient.
FWIW: holm (and htmy) already has built-in HTML and even markdown support. You just needed a couple of lines of Python code until now.
Working on adding support for plain HTML layouts to holm.
This will also allow full HTML rendering customization, so you could even plug in tools like Jinja or Chameleon.
The feature and the examples are ready. Now comes the documentation.
If interested, feel free to check the PR and comment on the issue: https://github.com/volfpeter/holm/issues/52
@davidbrochart I'm curious if this is something you'd find useful, and if so, what you'd need.
FastHX (server-side rendering and HTMX utility for FastAPI) now supports async HTML streaming.
More details in the release note and the PR: https://github.com/volfpeter/fasthx/releases/tag/v3.1.0
This means holm also supports async HTML streaming, although it's not the default for now: https://volfpeter.github.io/holm/
This may be the best time to give holm a try if you start a web project, especially if you use HTMX.
Happy new year to everyone!
htmy 0.10 is now on PyPI!
The major feature is async HTML streaming, plus some performance improvements.
Also moved the docs to @zensical - thanks for the mkdocs config support! It made the transition super easy.
Next steps: bring async HTML streaming to FastHX (FastAPI ❤️ HTMX) and holm, to have a compelling FastAPI-based FastHTML replacement.
Released holm 0.6 with a big new feature: actions.
If you don't know, it's a Python SSR framework for HTMX, built with FastAPI. Think FastHTML on steroids with NextJS-like DX.
There's now a 5min guide for those in a hurry, and plenty of examples: https://volfpeter.github.io/holm/in-a-hurry/
I would love your feedback (or a boost to get out of my tiny network 😃).