Allows to return a Twig template static variables without actually rendering it.