Update Replicant plugin to use sci.configs
This commit is contained in:
parent
1977424508
commit
8b4f3bc07d
2
deps.edn
2
deps.edn
|
@ -22,7 +22,7 @@
|
||||||
io.github.babashka/sci.configs
|
io.github.babashka/sci.configs
|
||||||
#_{:local/root "/Users/borkdude/dev/sci.configs"}
|
#_{:local/root "/Users/borkdude/dev/sci.configs"}
|
||||||
{:git/url "https://github.com/babashka/sci.configs"
|
{:git/url "https://github.com/babashka/sci.configs"
|
||||||
:git/sha "8253c69a537bcc82e8ff122e5f905fe9d1e303f0"}}
|
:git/sha "a96625e839d7b8a8910eaa1cc9ccf01bb9714458"}}
|
||||||
:aliases
|
:aliases
|
||||||
{:dev
|
{:dev
|
||||||
{:extra-paths ["dev"]
|
{:extra-paths ["dev"]
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
(ns sci.configs.replicant.replicant-dom
|
|
||||||
(:require [replicant.dom :as rd]
|
|
||||||
[sci.core :as sci]))
|
|
||||||
|
|
||||||
(def rdns (sci/create-ns 'replicant.dom nil))
|
|
||||||
|
|
||||||
(def replicant-dom-namespace
|
|
||||||
{'render (sci/copy-var rd/render rdns)
|
|
||||||
'unmount (sci/copy-var rd/unmount rdns)
|
|
||||||
'set-dispatch! (sci/copy-var rd/set-dispatch! rdns)})
|
|
||||||
|
|
||||||
(def namespaces {'replicant.dom replicant-dom-namespace})
|
|
||||||
|
|
||||||
(def config {:namespaces namespaces})
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
(ns scittle.replicant
|
(ns scittle.replicant
|
||||||
(:require
|
(:require
|
||||||
[sci.configs.replicant.replicant-dom :refer [replicant-dom-namespace]]
|
[sci.configs.cjohansen.replicant :refer [config]]
|
||||||
[scittle.core :as scittle]))
|
[scittle.core :as scittle]))
|
||||||
|
|
||||||
(scittle/register-plugin!
|
(scittle/register-plugin!
|
||||||
::replicant
|
::replicant
|
||||||
{:namespaces {'replicant.dom replicant-dom-namespace}})
|
config)
|
||||||
|
|
Loading…
Reference in a new issue