<h2>Table of Contents</h2>
<div block="var tree = wiki.tree($0 ?? $hPath)">{{ tree }}
<div block="var p = wiki.getpage($0 ?? $hPath)">
<h1>{{ p.title }}</h1>
{{ wiki.page(p.path) }}</div>
<div block="var p = wiki.getpage(num.cast(xml.text(a, '@pageid')))" foreach="var a in tree['//a']">
<h1>{{ p.title }}</h1>
{{ wiki.page(p.path) }}</div>
</div>