"""Image renderer module."""
from mfr.core import RenderResult


def render_img_tag(fp, src=None, alt=''):
    """A simple image tag renderer.

    :param str:
    """
    # Default src to the filename
    if src is None:
        src = fp.name

    return RenderResult('<img src="{src}" alt="{alt}" />'.format(src=src, alt=alt))
"""Image renderer module."""
from mfr.core import RenderResult


def render_img_tag(fp, src=None, alt=''):
    """A simple image tag renderer.

    :param str:
    """
    # Default src to the filename
    if src is None:
        src = fp.name

    content = '<img src="{src}" alt="{alt}" />'.format(src=src, alt=alt)
    return RenderResult(content)
split line for clarity