Fork me on GitHub

Hi all. I'm looking to use Precept / Clara (on its own) and I was interested to know if you could add and remove rules dynamically? I'm using it on Java with an app where users would be able to create rules to be applied to events occurring. Users would need to be able to add and remove rules (I imagine a rule would last about a day). Is this easily doable?


@flipmokid Very good question! We would like to be able to do similar things ourselves, and so far we are finding that it would require pulling down the CLJS compiler for client-side applications. I think it would be possible to do in 100 percent Clojure without as many complications but I haven’t had time to try yet


Clara’s sessions typically get their rules from provided namespaces, but you can create sessions with individual rule definitions in Clojure