# lace:current

Style the currently active link. Put `lace:current` on an `<a>` and Interlace adds a class when the
link's `href` matches the current page.

```django
<a href="/docs/" lace:current="font-semibold text-ink-900">Docs</a>
<a href="/blog/" lace:current="font-semibold text-ink-900">Blog</a>
```

The directive's value is the class (or classes) to add; if you omit it, the class `active` is used:

```django
<a href="/docs/" lace:current>Docs</a>   {# adds "active" when on /docs/... #}
```

Matching is exact, or a section prefix, so `/docs/` is marked active on `/docs/templates/` too. The
home link `/` only matches the home page exactly.
