https://github.com/Lokeh/hx/commit/f8b755ecf21d954a675a7296a0d52b9f2abf6ad6 adds the API for registering interceptors. The default is currently to compile top-level hiccup, and to transform $ to calls to (compile-hiccup ...). Several people have commented on the use of $ so I'm considering switching that off by default.
There are currently two outstanding issues with the interceptor API:
How should lib consumers register interceptors?
Interceptors must be registered via CLJ code at macroexpansion time, but apps that use this library are primarily CLJS.
https://github.com/Lokeh/hx/commit/f8b755ecf21d954a675a7296a0d52b9f2abf6ad6 adds the API for registering interceptors. The default is currently to compile top-level hiccup, and to transform
$
to calls to(compile-hiccup ...)
. Several people have commented on the use of$
so I'm considering switching that off by default.There are currently two outstanding issues with the interceptor API:
Interceptors must be registered via CLJ code at macroexpansion time, but apps that use this library are primarily CLJS.