Renders a templated yaml document from a string.

    :param content: The yaml string to evaluate.
    :param context: A context to overlay on the yaml file.  This will override any yaml values.
    :param globals: A dictionary of globally-accessible objects within the rendered template.
    :return: A dict with the final overlayed configuration.

def render_from_string(content, context=None, globals=None):
    """
    Renders a templated yaml document from a string.

    :param content: The yaml string to evaluate.
    :param context: A context to overlay on the yaml file.  This will override any yaml values.
    :param globals: A dictionary of globally-accessible objects within the rendered template.
    :return: A dict with the final overlayed configuration.
    """
    yaml_resolver = resolver.TYamlResolver.new_from_string(content)

    return yaml_resolver.resolve(Context(context), globals)._data