starlette.check_views()

Raises chameleon_rs.web.DecoratorOrderError if a route of app (a Starlette app

Usage

Source

starlette.check_views(
    app,
    ignore=(),
)

or a Router; mounted apps, Host and HTTPEndpoint classes included) calls a view that @template wrapped after the route registered it. Runs by itself when the app starts, for an app given to configure(app=...).

It cannot tell the mistake from a function routed raw on purpose whose @template wrapper is used elsewhere (called from another view, or routed on another app): list such functions in ignore.