Version: v0.7.1 - Beta.  We welcome contributors & feedback.

Url.link

link($label, $params = {}) -> HtmlString

Description

Create a <a> link tag pointing to the Url.

The $params argument takes a Map of additional HTML tag attributes.

tm profileLink($userName) {
    -- $profileUrl = url'/user/{}'.fill($userName)
    {{ profileUrl.link($userName) }}
}

profileLink('taylor22')

//= <a href="/user/taylor22">taylor22</a>

See Also