listHref
inline fun LI.listHref(url: String, text: String = "", target: HrefTarget = HrefTarget.SELF, classes: String = "", crossinline block: A.() -> Unit = {})
Emit an <a> inside an <li>. Displays text if non-blank, otherwise falls back to the raw url.
Parameters
url
the href attribute.
text
link text; defaults to url when blank.
target
<a target> behavior; HrefTarget.SELF omits the attribute.
classes
CSS classes for the anchor; blank omits the attribute.
block
additional configuration applied to the anchor element.