Can Figwheel evaluate ClojureScript code when modifying a resource file?

I have a macro that pulls a markdown file from resources. It provides a convenient way to provide some content. But when I edit the markdown file, Figwheel does not know that he needs to re-evaluate the macro.

Putting markdowns on a line inside the cljs file is undesirable because lines with newlines are indented for most Clojure editors, and this leads to incorrect markdowns (leading spaces make sense in markdowns).

Is there any way to detect / update when markdown file changes? Or the best solution?

Here is a basic example of what I'm trying to do: https://github.com/timothypratley/figwheel-watch-markdown-example

+7
clojure markdown clojurescript figwheel
source share
1 answer

Figwheel configurations allow you to add ::watch-paths that cause a reboot when change events exit the file system. You can also use ::hawk-options to poll files looking for changes that might seem to be required in some environments.

+2
source share

All Articles