Hi,
I have pages that use default layout. Now, I have <script>
tag specific to each page. But they need to be accessed in layout, as scripts are dependent on jQuery which is specified at last of <body>
tag in default layout and scripts won’t run unless loaded after jQuery has been loaded.
So, if I define a variable say pageScript in content of page as follows:
{% capture pageScript %}
<script>
...
</script>
{% endcapture %}
then is there any way in which I can access this variable in default layout after occurrence of {{ content }}
?
Thanks in advance