def reconstruct_include_node(node):
    """Given an include node, reconstruct the original text."""
    extra_context = " ".join(["%s=%s" % (item[0], item[1].token)
            for item in node.extra_context.viewitems()])
    if extra_context:
        return '{%% include %s with %s %%}' % (
            node.template.token, extra_context)
    else:
        return '{%% include %s %%}' % node.template.token