You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The marginalia doc parses out "public/index.html" and places it on the left as if it is a doc string. And removes the string in the source on the right, which is not correct.
My guess is that the parser looks for the first string within a form to use as a doc string perhaps.
EDIT: If anyone else happens upon this a simple macro is a decent fix.
(defmacrodeftemplate-marg"Helper macro for using deftemplate with doc strings."
[name doc-str source args & forms]
`(def ~name ~doc-str (net.cgrand.enlive-html/template ~source ~args ~@forms)))
For example, given the following code:
marg will correctly identify the docstring and move it to the left, but the resulting code looks like this:
I'm not sure if this is technically "wrong", but it is pretty awkward. Would it be better if the string wasn't extracted at all, in cases like this?
The text was updated successfully, but these errors were encountered: