rainphp/raintpl — pull request #25 by aseba (2012-01-27 04:46:39+00:00)
Title: Allow sub-classes to include pages using same sub-class

I've found that if I extend raintpl and build my own sub-class, when using include tags, raintpl includes the template using raintpl code (instead of the subclass behavior). With this fix the include tag will create a new instance of the class that is actually generating the parent template (the one that includes the other template). In other words, It will create a new instance of the derived class, not raintpl and therefore the behavior I need.

Code speaks better than words ;)