Stack in October – placeholder

If you want to inject some content from page to layout, october doesn’t have “stack”, use “placeholder” instead.

Layout:

{% placeholder scripts %}

Page:

{% put scripts %}
<script type="text/javascript">
//Some scripts here
</script>
{% endput %}

Reference: