我正在使用 autoreload-server 示例,该示例非常适合使用 ns-tracker 在更改 .clj 文件时重新加载命名空间。
https://github.com/pedestal/samples/blob/master/auto-reload-server/dev/dev.clj
但是,它不会在 resources/public 目录中获取激活模板的更改。我已将模板路径添加到 defn watch 中的向量:
`([] (watch ["src" "resources" "resources/public" "public"]))`
以及使用 enlive deftemplate 的命名空间中的这个:
(net.cgrand.reload/auto-reload *ns*)
但是,这不起作用。我的假设是 ns-tracker 仅适用于 clj 文件,并且我错误地使用了 enlive reload 功能。
有没有人在使用 enlive 并且已经解决了这个问题,或者有什么想法可以尝试?