Changes between Version 2 and Version 3 of ExtendingTemplates
- Timestamp:
- Nov 9, 2013, 2:53:21 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ExtendingTemplates
v2 v3 38 38 }}} 39 39 40 This will do what we want it to do. 41 42 The trick is very simple - we add a new directory right at the end of TEMPLATE_DIRS which is the parent of all of the other directories. This has the effect of making every template file within our system uniquely addressable. Most of the time we will use the normal paths, but in the special case of wanting to extend a template with an over-riding version of itself we can reference its parent's full, unambiguous template path in the extends tag. 40 hello 43 41 44 42