def _render_root_page(page, values): values.update( pkcollections.Dict( app_version=simulation_db.app_version(), source_cache_key=_source_cache_key(), static_files=simulation_db.static_libs(), )) return http_reply.render_static(page, 'html', values, cache_ok=True)
def _render_root_page(page, values): values.source_cache_key = _source_cache_key() values.app_version = simulation_db.app_version() values.static_files = simulation_db.static_libs() return flask.render_template( 'html/{}.html'.format(page), **values )