I have the following html that is loaded into a template...
Welcome <b id="alert-username">${fullname}</b>
I have the following selector/action in a template...
[:#alert-username] (replace-vars {:fullname (fullname request)})
This is rendered as follows...
Welcome ${fullname}
Which is obviously not what I'm looking for.
However, it works if I do it the hard way...
[:#alert-username] (fn [n] (assoc n :content [(fullname request)]))
which yields...
Welcome Bill
So I know that it's not an issue getting the username from the request because the above code does what it should.
What am I doing wrong here?