feat: Changes to template inheritance

Changes to what goes where.
This commit is contained in:
sthag 2026-03-01 16:31:10 +01:00
parent 10c71a3909
commit 48b6e1d0ed
8 changed files with 73 additions and 80 deletions

View file

@ -29,7 +29,7 @@
<body{{ bodyClassAttr }}>
{%- block body %}{% endblock -%}
<script>
// {{ title }} script
// {{ title }} script using default template
</script>
{%- block script %}{% endblock -%}
</body>

View file

@ -37,9 +37,12 @@
{%- block body %}{% endblock -%}
{% render 'hippie/partials/log-log' with 'BODY :: Loading script assets...' as msg -%}
<script>
// Full script
// {{ title }} script using full template
</script>
{%- block script %}{% endblock -%}
{% render 'hippie/partials/log-assets', state: true -%}
{% render 'hippie/partials/log-log', msg: 'BODY :: Assets loaded, running page specific script...', arg: true -%}
{% render 'hippie/partials/log-log' with 'BODY end :: Page script might still be loading.' as msg -%}
{% render 'hippie/partials/log-log' with 'Application ready... or is it?' as msg -%}
</body>
</html>

View file

@ -59,4 +59,4 @@
logPerf('EVENT :: jQuery \'ready\' event fired.');
});
</script>
{% endblock %}
{% endblock %}

View file

@ -7,9 +7,3 @@
{{ block.super -}}
<link href="/css/demo.css" media="all" rel="stylesheet"/>
{% endblock %}
{% block script %}
<script src="/vendor/hippie-script.js"></script>
<script src="/js/globals.js"></script>
<script src="/js/app.js"></script>
{% endblock %}