diff --git a/dev_mode/templates/error.html b/dev_mode/templates/error.html
index 5c389852810e..70158728d1ca 100644
--- a/dev_mode/templates/error.html
+++ b/dev_mode/templates/error.html
@@ -8,7 +8,7 @@
{% block h1_error %}
-
{{status_code}} : {{status_message}}
+
{{status_code | e}} : {{status_message | e}}
{% endblock h1_error %}
{% block error_detail %}
{% if message %}
The error was:
-
{{message}}
+
{{message | e}}
{% endif %}
{% endblock %}
@@ -48,7 +48,7 @@
{{status_code}} : {{status_message}}
var tb = document.getElementsByClassName('traceback')[0];
tb.scrollTop = tb.scrollHeight;
{% if message %}
- console.error("{{message}}")
+ console.error("{{message | e}}")
{% endif %}
};
diff --git a/examples/app/templates/index.html b/examples/app/templates/index.html
index b1e54724ced0..de1de05687fb 100644
--- a/examples/app/templates/index.html
+++ b/examples/app/templates/index.html
@@ -1,17 +1,19 @@
-
{{page_config['appName']}}
+
{{page_config['appName'] | e}}
-
-
+ {# Copy so we do not modify the page_config with updates. #}
+ {% set page_config_full = page_config.copy() %}
+
+ {# Set a dummy variable - we just want the side effect of the update. #}
+ {% set _ = page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %}
+
+
+
-
-
+ {% set page_config_full = {'baseUrl': base_url, 'token': token} %}
+
+
+
-
-
+ {% set page_config_full = {'baseUrl': base_url, 'token': token} %}
+
+
+
+
-
+ {% set page_config_full = {'baseUrl': base_url, 'token': token} %}
+
+
+
+
-
+
-
+ {% set page_config_full = {'baseUrl': base_url, 'token': token, 'terminalsAvailable': terminals_available} %}
+
+
+
+
+ {% set page_config_full = {'baseUrl': base_url} %}
+
+
+
Run code!
Type code in the text area and click run to execute it.
@@ -33,6 +38,6 @@
Run code!
}
});
-
+
diff --git a/packages/services/examples/browser/index.html b/packages/services/examples/browser/index.html
index dae0c538837f..89b619961b05 100644
--- a/packages/services/examples/browser/index.html
+++ b/packages/services/examples/browser/index.html
@@ -5,8 +5,13 @@
-
-
+ {% set page_config_full = {'baseUrl': base_url} %}
+
+
+
+
diff --git a/packages/services/examples/typescript-browser-with-output/index.html b/packages/services/examples/typescript-browser-with-output/index.html
index 187fbe1f4f8b..7daa5a6c105e 100644
--- a/packages/services/examples/typescript-browser-with-output/index.html
+++ b/packages/services/examples/typescript-browser-with-output/index.html
@@ -5,8 +5,13 @@
-
-
+ {% set page_config_full = {'baseUrl': base_url} %}
+
+
+
+