Horde Template system.
Adapted from bTemplate, by Brian Lozier <brian@massassi.net>.
