def get_template_info(template, include_template_id=True):
    """Gets template information
    Args:
        template: Template to get information from.
        include_template_id: Include the template id in the information

    Returns:
        Template information.

    """
    return_value = {'id': template.id if include_template_id else '',
        'name': template.display_name, 'hash': template.hash}
    return return_value
