I want a templating engine which is similar to apache tiles used in JAVA. Achache tiles uses oop approach. Consider the following example.
It works as follows:
1. Create a temple A.
2. Create 3 more templates, say B, C and D by extending template A.
Is there any templating engine which supports above functionality.