Code

Changes between Version 3 and Version 4 of ExtendingTemplates


Ignore:
Timestamp:
11/09/13 20:56:23 (5 months ago)
Author:
anonymous
Comment:

Reverted to version 2.

Legend:

Unmodified
Added
Removed
Modified
  • ExtendingTemplates

    v3 v4  
    3838}}} 
    3939 
    40 hello 
     40This will do what we want it to do. 
     41 
     42The 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. 
    4143 
    4244