Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pelme
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
pelme
9mo ago
htpy supports passing data between multiple levels components with its context (very similar to React): https://htpy.dev/usage/#passing-data-with-context
2.
▲
by
pelme
2y ago
(I am the maintainer of htpy). We use htpy for a big project with a lot of complex components/pages. We have yet to see htpy being a problem for performance reasons. For us, the performance problems always seem to be in our database qu
3.
▲
by
pelme
2y ago
htpy recently got a html2htpy command which can convert HTML to htpy code: https://htpy.dev/html2htpy/
4.
▲
by
pelme
2y ago
Thanks, that makes sense! :)
5.
▲
by
pelme
2y ago
In our company, where htpy was born, we are building a highly interactive application with htpy combined with Alpine.js+htmx. We have a couple of thousands lines of htpy code in production right now. We stick all HTML generation code into c
6.
▲
by
pelme
2y ago
Thanks for making FastHTML, it is great to see more Python tooling that embraces Python for generating HTML. What made you build FastTag instead of going with htpy? I am the author of htpy and any feedback would be very welcome!
7.
▲
by
pelme
2y ago
We have been doing something similar with https://htpy.dev the last ~6 months.
8.
▲
by
pelme
2y ago
Writing out the code to generate this may not be easier than using templates, but it is not really harder either. I think it mostly looks a little different. The real benefit is using this bootstrap modal component within your app, since it
9.
▲
Show HN: Htpy – generate HTML from Python without templates
(htpy.dev)
7 points
by
pelme
2y ago
|
2 comments
10.
▲
by
pelme
2y ago
Python's inline if's still read backwards to me and it would be nice to switch the order. But we are kind of stuck with it. I also don't want to introduce new control structures in this lib. Just want to use whatever Python h
11.
▲
by
pelme
2y ago
This looks great! Building HTML on the server with static types and htmx is a very productive combination! At work, we have been exploring alternatives to templates in our Django project and just released it as a lib to help with this: htt