starlette.global_init()
fastapi-chameleon’s setup call, for Starlette: configures the views’ templates only
Usage
starlette.global_init(
template_folder,
auto_reload=False,
cache_init=True,
restricted_namespace=True,
*,
app=None,
check_order=True
)(partials keep their own folder). With cache_init (the default) a call after the views’ folder is configured does nothing. app: check that app’s views when it starts, as configure(app=...) does.
Raises chameleon_rs.web.TemplateError if the folder is missing or not a directory.