paveldedik / ludic Goto Github PK
View Code? Open in Web Editor NEW๐ณ Lightweight framework for building dynamic HTML pages in pure Python.
Home Page: https://ludic.readthedocs.io/en/stable/
License: MIT License
๐ณ Lightweight framework for building dynamic HTML pages in pure Python.
Home Page: https://ludic.readthedocs.io/en/stable/
License: MIT License
There are usage examples: https://htmx.org/examples/
It would be nice to implement most of them. Currently only 5 of them are implemented.
A brief doc on how to integrate with an existing Django app would be extremely useful.
This idea is inspired by htpy which I learned of in the same HN thread I learned of ludic ๐
htpy
solves the "cant have attributes before variables number of child arguments" problem by some creative use of __getitem__
and return self
.
Toying around it seems like it would be quite simple to introduce this same pattern to Ludic, if there was any appetite:
https://github.com/bessey/ludic/pull/1/files
Personally I think its worth introducing this entirely optional API, unusual as it is, as it brings the syntax closer to raw HTML where attributes always come first. What are your thoughts?
It is not possible to do the following yet:
class Foo[T: TypedDict]:
def method(self, **kwargs: Unpack[T]) -> None: ...
Here is an open issue: python/typing#1399
When this is implemented and adopted by mypy/pyright, it should be uncommented in the code:
Lines 299 to 300 in fe281b7
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.