Closed WolfgangFahl closed 2 years ago
we need to be able to talk about issues and debugging in code with comments like - there is a problem in line xyz of somecode.js in function somefunction ...
let justpy_core=new JustpyCore(
this, // window
'JustPy', // title
false, // page_ready
false, // result_ready
0, // reload_interval
false // debug
);
is now generated by the template.py modules's Context class. The following code still has to be done:
{% if page_options.redirect %}
location.href = '{{ page_options.redirect|safe }}';
{%endif %}
{% if page_options.display_url is not none %}
window.history.pushState("", "", '{{ page_options.display_url }}');
{%endif %}
var page_id = {{ page_id | safe }};
var websocket_id = '';
var use_websockets = JSON.parse('{{ use_websockets }}');
var justpyComponents = {{ justpy_dict.replace('</' + 'script>', '</" + "script>') | safe }};
Discussed in https://github.com/justpy-org/justpy/discussions/471