Template inheritance explained
Template inheritance, as implemented by Django in Python and Dwoo in php, allow this ways of managing view construction:
- grouping includes in a “child” template,
- allow an include to not override the zone it belongs.
Template inheritance, as implemented by Django in Python and Dwoo in php, allow this ways of managing view construction:
Template inheritance is attractive because it looks like it will make it easier to re-use templates.
It is indeed powerful to make a website. When it comes to website production contexts, hackers of the Django community find it more interresting to build reusable micro applications: to reduce development and maintenance cost of a project; but that’s not the primary Django objective and thus: not what it was designed for.
This article attempts to demonstrate the pitfall of template inheritance in a reusable micro applications production context. It started as a draft feedback to Gaetano Giunta
continue reading