We are using CodeRay for Redmine. Since CodeRay already supports PHP maybe it could also support TWIG - somewhat an equivalent to HAML.