Skip to content

0.2.0: show-cljs and show-sci

Compare
Choose a tag to compare
@sritchie sritchie released this 30 Dec 13:21
· 24 commits to main since this release
66039ac

This release renames the cljs macro to show-sci, and adds a proper show-cljs macro, thanks to @mhuebert.

The other big addition is a documentation page detailing how to use Clerk with a custom ClojureScript bundle. This is a requirement for using ClojureScript and Reagent libraries and plugins that don't ship with Clerk.

That page, along with examples of show-cljs, lives here: https://clerk-utils.mentat.org/dev/clerk_utils/show.html

  • #8:

    • fleshes out show.cljc notebook

    • adds a guide for how to use Clerk with custom ClojureScript

  • #6:

    • Moves the cljs macro to mentat.clerk-utils.show/show-sci, to make it clearer what it's doing.

    • show-sci now works in cljc files by emitting nothing on the Clojurescript side, and maintaining its old behavior on the clj side.

    • Adds a new mentat.clerk-utils.show/show-cljs, ported with permission from @mhuebert's clerk-cljs library.

    • Adds a new documentation notebook at https://clerk-utils.mentat.org/dev/clerk_utils/show.html showing off how to use show-cljs to compile Clojurescript code and render it in Clerk in a single file.

    • To support the above change, https://clerk-utils.mentat.org now builds its own custom JS bundle.

    • Add missing clj-kondo config to the shipped jar.