←back to thread

378 points rbanffy | 2 comments | | HN request time: 1.361s | source
Show context
giancarlostoro ◴[] No.46210692[source]
Template partials look good, which is one of the key reasons frameworks like React are as good and popular as they are, because you can reuse small segments of code.
replies(8): >>46211187 #>>46211247 #>>46211354 #>>46211402 #>>46211982 #>>46212701 #>>46212849 #>>46213424 #
wahnfrieden ◴[] No.46212701[source]
There've been a variety of open source attempts at this idea. Is this official one now the best to use, or are the others still compelling?
replies(1): >>46214493 #
JodieBenitez ◴[] No.46214493[source]
https://django-cotton.com/ is component-based. I used it a bit, it's nice if you're used to the ways of front-end frameworks, I guess.
replies(1): >>46214534 #
1. wahnfrieden ◴[] No.46214534[source]
https://github.com/django-components/django-components also looked interesting
replies(1): >>46214562 #
2. JodieBenitez ◴[] No.46214562[source]
While using Cotton my thoughts were "ok, it's kinda cool... but do I really need it ? No. Is it worth the extra dependency ? No."

There is something very appeasing in just pulling Django and have all the basics covered. It's nice to have options when needed though.