←back to thread

379 points rbanffy | 1 comments | | HN request time: 0.263s | 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 #
pier25 ◴[] No.46213424[source]
Amazing that Django didn't have this until 2025
replies(2): >>46215377 #>>46216931 #
1. simonw ◴[] No.46216931[source]
It's had includes and custom template tags for over a decade. Partials are a slightly nicer design for a subset of that pattern.