kioo server side deftemplate error

10 views
Skip to first unread message

Amar

unread,
Nov 26, 2015, 12:14:05 AM11/26/15
to Enfocus
Hi!

I was trying out kioo for server side rendering via the kioo.server.core namespace but ran into an error:

java.lang.RuntimeException: No such var: kioo.core/value-component, compiling:(ui/admin/views.clj:4:1)

Should the last argument in the deftemplate syntax quote be false based on how snippet* is defined?

- Amar

;; from kioo.server.core
(defmacro deftemplate
  ([sym path args]
     `(def ~sym ~(snippet* path [:body :> any-node] {} args react-emit-opts true)))
...

;; from kioo.core
(defn snippet*
  ([path sel trans args emit-opts]
     (snippet* path sel trans args emit-opts false))
  ([path sel trans args emit-opts check-val?]
     (if check-val?
       `(kioo.core/value-component
         (fn ~args
           ~(component* path sel trans emit-opts)))
       `(fn ~args
          ~(component* path sel trans emit-opts)))))

Reply all
Reply to author
Forward
0 new messages