'Builds the object that searches for templates (cached or not) when rendering.
:type   plugin: ``util.bunch.Bunch``
:param  plugin: the plugin containing the templates
:rtype:         ``Mako.lookup.TemplateLookup``
:returns:       template lookup for this plugin'

def build_plugin_template_lookup(self, plugin):

    if (not plugin.serves_templates):
        return None
    template_lookup_paths = plugin.template_path
    if self.additional_template_paths:
        template_lookup_paths = ([template_lookup_paths] + self.additional_template_paths)
    template_lookup = self._create_mako_template_lookup(self.template_cache_dir, template_lookup_paths)
    return template_lookup
