Modified the TwigView to get the template directory from a config file