Commit 2b2ae187 authored by Martin Leblanc's avatar Martin Leblanc
Browse files

ISTWCMS-5309: attempt to pass no_js into twig

parent 3ea31348
...@@ -36,6 +36,16 @@ ...@@ -36,6 +36,16 @@
<link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Barlow:wght@400;500;700&display=swap" /> <link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Barlow:wght@400;500;700&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Barlow:wght@400;500;700&display=swap" <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Barlow:wght@400;500;700&display=swap"
media="print" onload="this.media='all'" /> media="print" onload="this.media='all'" />
<noscript>
{% set no_js = 'yes' %}
{{ no_js }}
</noscript>
<script>
{% set no_js = 'no' %}
var varTest = "{{- no_js -}}";
alert(varTest);
{{ no_js }}
</script>
<noscript> <noscript>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Barlow:wght@400;500;700&display=swap" /> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Barlow:wght@400;500;700&display=swap" />
</noscript> </noscript>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment