Blocks#
The base template base.pug defines two {% block %}
directives that content templates extend, plus two
asset-include partials that handle CSS / JS bootstrapping.
{% block %} definitions#
contentThe page body. Every content template extends
base.pugand overrides this block; the base wraps it in<main>alongside the flash-message include.post_jsShort JavaScript snippets that should run after the main app bundle. Rendered at the very end of
base.pug, after Highcharts is loaded and theHighcharts.themeis configured – so per-page chart code can rely on that setup.
Asset includes#
The base also - include-s two thin partials. They are not
blocks (content templates do not override them) but they live
alongside the blocks in base.pug’s structure.
core/_js_css.pugLoaded in
<head>. Pulls UIkit’s stylesheet, Bootstrap Icons font, and the project’s compiledapp_build.css.core/_post_js.pugLoaded at the end of
<body>. Pulls UIkit’s JS bundle and the project’s compiledapp_build.js.