jonathan-s / django-sockpuppet

Build reactive applications with the django tooling you already know and love.
https://github.com/jonathan-s/django-sockpuppet
MIT License
450 stars 22 forks source link

Add the possibility of updating html through morphs #41

Open jonathan-s opened 3 years ago

jonathan-s commented 3 years ago

Description

With morphs we can make make updates to html without necessarily re-rendering any html if we know the selector. Which means that the update will take less time.

If a morph is executed we will not make a re-rendering of the template which would normally happen with a reflex.

Fixes #27

Why should this be added

It'll give us a faster way to update the page, because we don't need any re-rendering of the template.

Checklist

Danilodum commented 3 years ago

What is the state of this PR, can I help?

Danilodum commented 3 years ago

I forked this and merged with master, seems to work great! 👍

jonathan-s commented 3 years ago

@Danilodum Is there anything in the documentation that is unclear to you? Is there anything that you'd like to add there?

Danilodum commented 3 years ago

@Danilodum Is there anything that you'd like to add there?

A template/context example would be a good addition