Skip to content

Common

Racine Index / App / Common

Auto-generated documentation for app.common module.

render_racine_template

Show source in common.py:16

Render a template with the common parameters.

Arguments

  • template - the template to render
  • js_view - the name of the javascript view to load
  • js_params - the parameters to pass to the javascript view
  • use_api - whether to pass the API token to the template (since the API can currently only used by logged-in users, this has to be set to False on the auth pages)
  • kwargs - additional parameters to pass to the template

Signature

def render_racine_template(
    template: str, js_view="", js_params={}, use_api=True, **kwargs
): ...