def pages(count, key="page"):
    """
    Renders a pages block [<<] [1] [2] [3] [>>]
    :param count: Maximum of pages
    :param key: A key from the context to determine the current page.
    """

    return {
        "class": "pages",
        "key": key,
        "count": count
    }