Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
paveldedik
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
1.
▲
by
paveldedik
2y ago
Thank you very much, really good advice here.
2.
▲
Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
(getludic.dev)
107 points
by
paveldedik
2y ago
|
35 comments
3.
▲
by
paveldedik
2y ago
Thank you for the feedback, I need to improve the home page a lot. I thought I should make it as brief as possible so that people don't need to read long essays to quickly understand what it is about. But at the same time, presenting a
4.
▲
by
paveldedik
2y ago
Well, I would like it if the solution supported standard Python typing. Here I can create a "component" that expects a specific type of the first child and a specific type of the second child. I would probably have to use a separa
5.
▲
by
paveldedik
2y ago
Yeah, I understand that. Now that Python 3.12 has better support for f-strings, I thought there might be a way to make it possible. But I am still not sure it will work. There is a pretty weird hack to make f-strings work while avoiding the
6.
▲
by
paveldedik
2y ago
I think it is somewhat similar to React, for example, you can create a Link component like you can see in the README.md Now you can use it in f-strings, and well, other components. The idea from the beginning was to integrate it with htmx.o
7.
▲
by
paveldedik
2y ago
I've been working on a lightweight framework called Ludic that focuses on web development using Python, htmx.org, and a somewhat React-like component approach. It leverages Starlette for performance and the latest Python 3.12 typing f
8.
▲
Ludic: New framework for Python with seamless Htmx support
(github.com)
205 points
by
paveldedik
2y ago
|
105 comments