def fragment(parser, token):
    """
    Appends the given content to the fragment. Different modes (replace,
    append) are available if specified.

    Either::

        {% fragment request "title" %} content ... {% endfragment %}

    or::

        {% fragment request "title" (prepend|replace|append) %}
        content ...
        {% endfragment %}
    """

    nodelist = parser.parse("endfragment")
    parser.delete_first_token()

    return FragmentNode(nodelist, *token.contents.split()[1:])

    Appends the given content to the fragment. Different modes (replace,
    append) are available if specified.

    Either::

        {% fragment request "title" %} content ... {% endfragment %}

    or::

        {% fragment request "title" (prepend|replace|append) %}
        content ...
        {% endfragment %}
    
feincms/templatetags/fragment_tags.py