'Renders a template string based on fields in the entry.
:param template: A template string or FlexGetTemplate that uses jinja2 or python string replacement format.
:return: The result of the rendering.
:rtype: string
:raises RenderError: If there is a problem.'

def render(self, template):

    if (not isinstance(template, (str, FlexGetTemplate))):
        raise ValueError((u'Trying    to    render    non    string    template    or    unrecognized    template    format,    got    %s' % repr(template)))
    log.trace(u'rendering:    %s', template)
    return render_from_entry(template, self)
