Posted by Fabianx on October 20, 2012 at 2:20am A note in advance: Even though this includes some specifics of Twig and the idea is to implement it with Twig, most of the ideas are written in abstract form with an hypothetical "secure phptemplate engine in mind, so that the whole community can participate in the discussion.