Data can be supplied from the server through the onBeginProcessData event instead of being stored in the template.

Handle the data event.
viewer = StiViewer()

# String name -> JavaScript client-side handler; a function -> Python server-side handler
viewer.onBeginProcessData += 'beginProcessData'

report = StiReport()
report.loadFile(url_for('static', filename='reports/SimpleList.mrt'))
viewer.report = report

How it works. The event lets code decide the report's data at request time, so the template need not carry its own connections.

Hi. Need any help?