Skip to content

Why not just use Django + Alpine #8

Answered by samwillis
Vad1mo asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for taking a look!

Tetra is doing four things:

  • It proves the "glue" between Django and Alpine by making "public" methods (and attributes) that can be called directly from your alpine code. You don't need to build an API or have views that output HTML fragments for patching (as you do with vanilla HTMX). It should result in writing significantly less code.

  • Also Tetra components are "statefull", further calls to public methods (on the backend) from the front end maintain the full state of the Python Component instance. This is like Livewire for PHP, although I believe (I'm not a PHP dev) we are able to support a wider range of types as Tetra uses Python Pickle for serialising. (t…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Vad1mo
Comment options

@samwillis
Comment options

@khanakia
Comment options

@samwillis
Comment options

Answer selected by Vad1mo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants