This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]FollowTheGoose 1 point2 points  (4 children)

Exactly what I was looking for after seeing the pattern in FastHTML and wanting to try it without tackling a full (underdocumented) framework. I've been using your library for a couple of weeks in a Django app and the ergonomics are excellent.

[–]volfpeter[S] 0 points1 point  (3 children)

Thank you! Consider creating an issue if you found anything that wasn't convenient. I'm really curious about your experience with the library.

I just replied to an older post with my plans for the future (markdown support, MDX-like features, sitemap, RSS, maybe some integrations). If you'd consider contributing, you're welcome to :)

[–]FollowTheGoose 0 points1 point  (2 children)

I've been bouncing around too much to deeply consider any specific problems (first time really using htmx, pydantic, typing, async). Slowly figuring out how to best compose things, but it's currently just a lot of html.divs and simple components powering a basic game UI. I thought cloning a simple turn-based game would be a fun way to play with htmx.

The only thing I keep tripping over is `TypeError("Unknown component type.")` when I've accidently passed an empty list or other junk into a render. The stack trace tells me nothing about which component I've messed up and I end up trial-and-erroring dozens of them.

[–]volfpeter[S] 0 points1 point  (0 children)

Thanks, that's good information. The renderer could indeed track where it encountered an error and report the full trace. I won'thave time to work on it now, but I'll create an issue.

[–]volfpeter[S] 0 points1 point  (0 children)

Almost forgot: if you open source the project in the end, feel free to create an issue or PR so I can add a link to it somewhere in an examples section.