3 <?php if (isset($exception)) : ?>
4 <?=\mdref\ExceptionHandler::html($exception, ["h2"], ["p"], ["pre", "style='overflow-x:scroll'"]); ?>
6 <?php if (isset($listing) && count($listing)) : ?>
7 <h2>Available References</h2>
8 <?php foreach ($listing as $entry) : ?>
9 <h3><a href="<?=$entry->formatUrl()?>"><?=$entry->formatLink()?></a></h3>
11 <?php foreach (new mdref\RefListing($path = $refs->find($baseUrl->mod($entry->formatUrl())), $refs->glob($path, "/*.md")) as $entry) : ?>
12 <li><a href="<?=$entry->formatUrl()?>"><?=$entry->formatLink()?></a><br>
13 <?=$entry->readDescription()?></li>