I know there's a pedestal-users mailing list, and I sent my question to it, but 
for whatever reason it hasn't shown up there (perhaps it's still in the 
moderation queue?). Hopefully someone here might be able to help.

On this page: http://pedestal.io/documentation/application-introduction/

There is the following code (at the very bottom of the page):

        (def templates (html-templates/hello-world-templates))

        (defn count-model [old-state message]
          (condp = (msg/type message)
            msg/init (:value message)
            :inc (inc old-state)))

        (defn render-page [renderer [_ path] input-queue]
          (let [parent (push/get-parent-id renderer path)
                html (templates/add-template renderer path (:hello-world-page 
templates))]
            (dom/append! (dom/by-id parent) (html {:message ""}))))

I don't understand how a map, in this case `templates', is also being used as a 
namespace: `(templates/add-template renderer ... )'.

What's going on?

Many thanks,
Greg

--
Please do not email me anything that you are not comfortable also sharing with 
the NSA.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to