def format_underscore_template(name, content):
    """
    Format the template as an Underscore.js template.

    :param name: name of the template
    :param content: content of the template
    :return: string containing formatted template
    """
    return '\n<script type="text/template" id="{0}">\n{1}\n</script>\n'.format(name, content)