- new global variable debugMode - demo templates are now based on hippie defaults joined with template inheritance - add log macros - new function logAdd() - log uses global state
41 lines
No EOL
1.1 KiB
Text
41 lines
No EOL
1.1 KiB
Text
<!-- default.template -->
|
|
{% import "hippie/macros/_log.njk" as log %}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="de" class="{{ pageClass }}" id="{{ pageId }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
|
|
{% block head %}
|
|
<title>
|
|
{{ hippie.titlePrefix }}
|
|
{% block title %}{% endblock %}{{ hippie.titlePostfix }}</title>
|
|
|
|
{% block meta %}
|
|
{% include "hippie/partials/_head_meta.njk" %}
|
|
{% endblock %}
|
|
|
|
{% include "hippie/partials/_head_script.njk" %}
|
|
{# {{ log.debug(true) }} #}
|
|
{{ log.start() }}
|
|
|
|
{% block links %}
|
|
{% include "hippie/partials/_head_links.njk" %}
|
|
<link rel="stylesheet" type="text/css" media="all" href="{{ pageBase }}css/demo.css"/>
|
|
{% endblock %}
|
|
|
|
{{ log.log('HEAD end :: Links parsed, starting to load.') }}
|
|
{% endblock %}
|
|
</head>
|
|
|
|
<body class="{{ bodyClass }}">
|
|
{{ log.log('BODY start') }}
|
|
{% block body %}{% endblock %}
|
|
|
|
{% block script %}
|
|
{{ log.log('BODY :: Loading script assets...') }}
|
|
{% endblock %}
|
|
|
|
{{ log.log('BODY end :: Page script might still be loading.') }}
|
|
</body>
|
|
</html> |