Open butaji opened 9 years ago
This code is working well in ClojureScript
(defmacro render [x] (name (first x))) (render [:html])
=> "html" but stuck in wisp. Interesting thing, that if I add brackets [] outside result like this
(defmacro render [x] [(name (first x))]) (render [:html])
=> ['html']
it works well. How can I resolve this issue?
Shouldn't the correct form just be:
(defmacro render [x] (list 'name (first x))) (render [:html]) ;=> html
This code is working well in ClojureScript
=> "html" but stuck in wisp. Interesting thing, that if I add brackets [] outside result like this
=> ['html']
it works well. How can I resolve this issue?