Twig base class