parent
89166ad351
commit
39a183fa21
@ -0,0 +1,11 @@
|
||||
(ns wanijo.domain.user
|
||||
(:require [wanijo.neo4j :as neo4j]))
|
||||
|
||||
(defn find! [ident]
|
||||
(neo4j/query-rawdata!
|
||||
:query
|
||||
"MATCH (n:user)
|
||||
WHERE n.ident = {ident}
|
||||
RETURN n"
|
||||
:alias "n"
|
||||
:params {:ident ident}))
|
@ -1,5 +1,5 @@
|
||||
(ns wanijo.home.view
|
||||
(:require [wanijo.view :as view]))
|
||||
(:require [wanijo.view.page :as page]))
|
||||
|
||||
(defn root! [req]
|
||||
(view/layout! :session (:session req)))
|
||||
(page/layout! :session (:session req)))
|
||||
|
@ -1,10 +1,10 @@
|
||||
(ns wanijo.forms
|
||||
(ns wanijo.view.forms
|
||||
(:require [hiccup.form :as hform]
|
||||
[clojure.spec.alpha :as spec]
|
||||
[wanijo.view :as view]))
|
||||
[wanijo.view.page :as page]))
|
||||
|
||||
(defn spec-to-errmsg [label spec-key field-value]
|
||||
(view/flash-error
|
||||
(page/flash-error
|
||||
(map
|
||||
(fn [prob]
|
||||
[:p
|
@ -1,6 +1,6 @@
|
||||
(ns wanijo.view
|
||||
(:require [hiccup.page :refer [html5
|
||||
include-css]]))
|
||||
(ns wanijo.view.page
|
||||
(:require [hiccup.page :refer
|
||||
[html5 include-css]]))
|
||||
|
||||
(defn btnlink
|
||||
([target caption]
|
Loading…
Reference in new issue