Fork me on GitHub
#ring
<
2018-07-17
>
mikerod23:07:40

@happy.lisper if you know the base before compiling (can store in var prior to route definitions), you should be able to refer to the var via compojure.core/context when defining routes (if I understand you correctly)

Andy04:07:11

thx. just wanted to check if there is another construct or standard solution. context should work for me and in fact it is dynamic enough I can pass the mountpath from configuration to runtime.

mikerod23:07:09

if things have to be more dynamic than that, you could try just doing something similar to what these macros are doing (the fn’s they are using) to do things at later runtime