def METHOD_NAME(view_func):
    global _creation_counter
    _creation_counter += 1
    # Make sure page has _routablepage_routes attribute
    if not hasattr(view_func, "_routablepage_routes"):
        view_func._routablepage_routes = []
    # Add new route to view
    view_func._routablepage_routes.append(
        (
            func(pattern, view_func, name=(name or view_func.__name__)),
            _creation_counter,
        )
    )
    return view_func