use cases
run goldly without ui-extensions
clojure -X:goldly
http://localhost:8000
running systems
and then snippet registry
The source code of the registry systems is in src/systems
.
The snippets are in resources/snippets/
The snippets are primitive, but demonstrate certain features of goldly:
run goldly with bundel ui-extensions
clojure -X:goldly-bundel
This is the same config as in goldly-bundel, but the javascript bundel is generated on the fly. It gives you a lot more snippets.
You can include one of two artefacts:
The two artefacts are completely identical to use.
To start the goldly via goldly-bundel:
clojure -Sdeps '{:deps {org.pinkgorilla/goldly-bundel {:mvn/version "RELEASE"}}}' -m goldly-server.app
This configures goldly with your set of ui-renderers.
You have to include the goldly and ui-renderer dependencies, and then add the namespace of the ui-renderer to goldly/extensions. This allows goldly to add the ui extensions to the javascript bundle.
This example adds gorilla-ui to goldly:
for tools.deps Add this alias to your deps.edn:
:goldly
{:extra-deps {org.pinkgorilla/goldly {:mvn/version "RELEASE"}
org.pinkgorilla/gorilla-ui {:mvn/version "RELEASE"}}
:exec-fn goldly-server.app/goldly-server-run!
:exec-args {:profile "watch"
:config {:goldly {:extensions [[pinkgorilla.ui.goldly]
]}}}}
for leiningen
See demo-goldly-bundel for the complete project- Add the alias to project.clj
{:alias
"goldly"
["with-profile" "+goldly" "run" "-m" "goldly-server.app" "watch" "goldly-gorillaui.edn"]}
Add a goldly-gorillaui.edn:
{:goldly {:extensions [[pinkgorilla.ui.goldly]]}}
You can get and set the scratchpad data via http api.
Please execute ./script/scratchpad-get.sh
or ./script/scratchpad-set.sh
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close