public function getTemplate($type, $format = 'html')
    {
        if (array_key_exists($type, $this->templates)) {
            return $this->templates[$type] . '.' . $format . '.twig';
        }

        return;
    }