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#

content

The page body. Every content template extends base.pug and overrides this block; the base wraps it in <main> alongside the flash-message include.

post_js

Short JavaScript snippets that should run after the main app bundle. Rendered at the very end of base.pug, after Highcharts is loaded and the Highcharts.theme is 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.pug

Loaded in <head>. Pulls UIkit’s stylesheet, Bootstrap Icons font, and the project’s compiled app_build.css.

core/_post_js.pug

Loaded at the end of <body>. Pulls UIkit’s JS bundle and the project’s compiled app_build.js.