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

Web.anchorUrl

Web.anchorUrl($label, $options = {}) -> HtmlString

Description

Create a # anchor URL, that lets users jump to a specific point in the page.

This is often used to implement a table of contents.

It will convert the label to a dash-case URL slug.

tem titleHtml($title) {
    {{ Web.anchorUrl($title).toLink($title) }}
}

titleHtml('Oranges, etc.')
// <a href="#oranges-etc">Oranges, etc.</a>

See Also