Variable passed to macro gets resolved in wrong namespace?

后端 未结 4 2176
被撕碎了的回忆
被撕碎了的回忆 2021-01-12 05:04

The Noir macro defpage is giving me a little bit of trouble. I am trying to construct a call similar to this:

(defpage [:post \"some/url\"] [dat         


        
4条回答
  •  猫巷女王i
    2021-01-12 05:47

    It seems, that noir is not meant to be used this way, because it takes the method argument and transforms it to the symbol in compojure.core (see https://github.com/ibdknox/noir/blob/master/src/noir/core.clj#L36). It means, that it doesn't expect a variable in this place, only literals. So I don't think you can do anything about that, except post an issue to noir...

提交回复
热议问题