ref: b9c81b93811dd5b10abfdd5bcbb888d276f769d3
parent: 9c28aaa0123cf98736046c068173a64baf31f9bc
author: sl <uriel@engel.se.cat-v.org>
date: Tue Mar 3 07:32:03 EST 2009
New link_bar handler to be used in sidebars.
--- a/bin/corehandlers.rc
+++ b/bin/corehandlers.rc
@@ -31,6 +31,18 @@
END { p(lNF, 0, "</ul>") }'
}
+fn link_bar {
+ if(~ $1 -t) {
+ echo '<p class="sideBarTitle">'$2'</p>'
+ shift; shift
+ }
+ echo '<ul>'
+ while(! ~ $#* 0) {
+ echo '<li><a href="'$2'">- '$1'</a></li>'
+ shift; shift
+ }
+ echo '</ul>'
+}
fn md_handler { $formatter < $1 }