Liking cljdoc? Tell your friends :D

ui-code GitHub Actions status |pink-gorilla/ui-codemirrorClojars Project

Codemirror Code Editors / Viewer.

End-Users

  • this project is NOT for you! Instead go to:
  • notebook

Demo

clojure -X:goldly

Navigate your webbrowser to port. Codemirror snippets are in running systems / snippet-registry

Use with goldly

This library provides the pinkie ui renderer [:p/codemirror id atom path]

Add this alias to your deps.edn:

 :goldly
  {:extra-deps {org.pinkgorilla/goldly {:mvn/version "RELEASE"}
                org.pinkgorilla/ui-code {:mvn/version "RELEASE"}}
   :exec-fn goldly-server.app/goldly-server-run!
   :exec-args {:profile "watch"
               :config {:goldly {}}}}

Why ui-code?

  • Codemirror requires a lot of customization, so this needs to be done somewhere
  • this is especially true for startup bootstrapping (css with themes, js global init)
  • goldly needs to edit snippets
  • notebook needs to edit code (inside a notebook)
  • in goldly apps you might have a special usecase

Use outside of goldly and webly

  • We use on goldly and webly to manage css and for snippet examples.
  • You can create a custom clojurescript project with shadow-cljs and ignore src/goldly.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close