'Decorate the plugin with paths needed to fill templates.
Plugin bunches are decorated with:
* serves_templates :    whether this plugin will use templates
If the plugin path contains a \'static\' sub-dir, the following are added:
* template_path   : the filesystem path to the template sub-dir
* template_lookup : the (currently Mako) TemplateLookup used to search
for templates
:type   plugin: ``util.bunch.Bunch``
:param  plugin: the plugin to decorate
:rtype:         ``util.bunch.Bunch``
:returns:       the loaded plugin object'

def _set_up_template_plugin(self, plugin):

    plugin['serves_templates'] = False
    template_path = os.path.join(plugin.path, 'templates')
    if (self.serves_templates and os.path.isdir(template_path)):
        plugin.serves_templates = True
        plugin['template_path'] = template_path
        plugin['template_lookup'] = self.build_plugin_template_lookup(plugin)
    return plugin
