move formatting from JS to PHP
[mdref/mdref] / mdref / Generator / Func.php
index f31941a200e5ce5256374d8817fca37d2d826545..dfee0e7fb77a1f0b8ec9c772bc1e0f8674d54cb5 100644 (file)
@@ -91,4 +91,25 @@ endif;
 ?>
 
 
+<?php
+if (($tags = $doc?->getTagsWithTypeByName("throws"))) :
+?>
+
+## Throws:
+
+<?php
+       foreach ($tags as $tag) :
+               ?>* <?= $tag->getType()
+               ?><?php
+               if ($tag->getDescription()?->getBodyTemplate()) :
+                       ?>, <?= $tag->getDescription()
+                       ?><?php
+               endif;
+               ?><?="\n"
+       ?><?php
+       endforeach;
+endif;
+?>
+
+
 <?php