Hierarchical CSS Splitting

There are two fundamentals on justifying hierarchical CSS splitting:

Hierarchical CSS splitting in Kask “bundles” each /**/.kask/propagate folder contents at its own. Resulting the webpages in deeper levels to have bigger number of stylesheets linked starting from the most “generic” to most “specific”. The most spefic one is the bundle made out of css files in the .kask folder at the same level with the page.

.
├── .kask
│   ├── propagate
│   │   └── *.css
│   └── *.css
└── docs
    ├── .kask
    │   ├── propagate
    │   │   └── *.css
    │   └── *.css
    ├── tutorials
    │       └── *.md # [.kask/propagate/*.css, docs/.kask/propagate/*.css]
    └── *.md # [.kask/propagate/*.css, docs/.kask/propagate/*.css, docs/.kask/*.css]

Attaching bundles to page

Templates named "page" and "markdown-page" are expected to include all bundles passed to them inside <head> tag:

{{define "page"}}
<html>
    <head>
        {{range .Stylesheets}}
        <link rel="stylesheet" href="{{.}}" />
        {{end}}
    </head>
</html>
{{end}}