metasoarous / oz

Data visualizations in Clojure and ClojureScript using Vega and Vega-lite
Eclipse Public License 1.0
828 stars 74 forks source link

:template-fn option not working on re-evaluation of build! #154

Open metasoarous opened 3 years ago

metasoarous commented 3 years ago

Setting :template-fn does seem to do the right thing on first execution of build!. However, changing :template-fn on subsequent executions does not seem to have the desired effect. This may be operator error, but should verify and fix if possible.

metasoarous commented 3 years ago

LOL; Indeed this does appear to have been at least in part operator error. Re-evaluating build with a new :template-fn does not immediately re-render with the new template, but will when you change an input file, triggering a rebuild. I tried this before posting above, however there was an error in my template-fn which obfuscated the intended effect, making me think it wasn't getting picked up at all.

So... still room for improvement here, but workaround for now is to just manually trigger a rebuild on any files of interest.