Is it possible to append a value to an attribute using enlive?
example: I have this
<a href="/item/edit/">edit</a>
and would like this
<a href="/item/edit/123">edit</a>
I am currently doing this:
(html/defsnippet foo "views/foo.html" [:#main]
[ctxt]
[:a] (html/set-attr :href (str "/item/edit/" (ctxt :id))))
But I would prefer not to embed the URL into my code, by just appending the id to the existing URL
(html/defsnippet foo "views/foo.html" [:#main]
[ctxt]
[:a@href] (html/append (ctxt :id)))