Skip to content

Liv

index(mode='', mode_params='') ΒΆ

Render the image viewer page.

Source code in ckanext/nhm/routes/liv.py
12
13
14
15
16
17
18
19
20
21
22
23
@blueprint.route('/')
@blueprint.route('/<mode>')
@blueprint.route('/<mode>/<path:mode_params>')
def index(mode='', mode_params=''):
    """
    Render the image viewer page.
    """
    # the template doesn't actually do anything with the args but we may as well pass
    # them in anyway
    return toolkit.render(
        'liv.html', extra_vars={'mode': mode, 'mode_params': mode_params}
    )