'Detect and set up template paths if the plugin serves templates.'

def _set_up_template_plugin(self, template_cache_dir, additional_template_paths=None, **kwargs):

    self.serves_templates = False
    if self._is_template_plugin():
        self.template_path = self._build_template_path()
        self.template_lookup = self._build_template_lookup(template_cache_dir, additional_template_paths=additional_template_paths)
        self.serves_templates = True
    return self.serves_templates
