rainphp/raintpl3 — pull request #17 by gamma-dj (2012-02-24 16:41:46+00:00)
Title: Re-useable templates

Use of "require_once" in draw() prevents the same template from being processed again, such as in a loop. Simply changing this to "require" does the trick.

Something to consider might be caching the contents of the fetched files, so that if they have already been included, we load their contents from the cache rather than re-including them. I'm not sure whether it would offer a performance benefit, or a worthwhile one if so.