3 ms·
What would you suggest in lieu of the layouts/partials for visual elements? The Django community has issues with this from time to time, where packages sometim
by bmelton 15y ago
What would you suggest in lieu of the layouts/partials for visual elements?
The Django community has issues with this from time to time, where packages sometimes don't include any templating, leaving people to guess at what needs to be there.
I don't know of an obvious solution though, except maybe a kitchen sink example of some sort. Thoughts?
- ricardobeat 15y agoI expect at least the most used template engines to re-implement both partials and layout as they were. They will benefit from custom cache strategies, but I don't see reason for radical changes. I wish one like jqtpl was made default :)
- tjholowaychuk 15y agoUp to the engines now, Jade implements django-like inheritance and includes, same with swig and a few of the others. There are a few that do not have any notion of IO so I plan on having a third-party implementation of the old partial() function, removing it greatly simplified the view system for people who were not using it previously anyway, and some of the rules partial() employed were needlessly confusing (collections etc).