summaryrefslogtreecommitdiffstats
path: root/tpl/objects/icon.pug
blob: 494abf6226ad2026858341cd18e2c98ff0d92678 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
mixin icon(id)
    -
        let href    = 'icons.svg#' + id
        let classes = {
            'o-icon': true
        }
        if (attributes.class) {
            classes[attributes.class] = true;
        }

    svg(class=classes width='1em' height='1em')
        use(href=href)