Re: Pedestal introduction question
Thanks, I made the update in the doc repo [1]. I'm not sure why your message took so long to drop into my non-registered email queue. I only saw an email about it late this morning. Anyways, I'll get this pushed to pedestal.io ASAP. In the future you can submit an issue or pull request to the pedestal/docs repo if you run into stuff like this [2]. -Ryan [1]: https://github.com/pedestal/docs/blob/master/documentation/application-introduction.md [2]: https://github.com/pedestal/docs On Thursday, July 4, 2013 12:22:25 PM UTC-4, Greg Slepak wrote: Thanks! Yeah it's probably just a mistake in the docs. -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Jul 4, 2013, at 10:08 AM, gianluca torta giat...@gmail.comjavascript: wrote: right, sorry! I found the double role of template in this sample file on the pedestal repo: https://github.com/pedestal/samples/blob/master/chat/chat-client/app/src/chat_client/web/rendering.cljs maybe the doc you originally refer to is inspired by this, but something got lost in the doc -Gianluca -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clo...@googlegroups.com javascript: Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+u...@googlegroups.com javascript: 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+u...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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.
Re: Pedestal introduction question
Hi, I am pretty new to clojure and trying to learn a lot from this great list anyway, looking at the code you point to, it seems that the name templates has two roles: - one deriving from: (:require ... [io.pedestal.app.render.push.templates :as templates] ...) - one deriving from: (def templates (html-templates/hello-world-templates)) looks like the one used for calling add-template etc. is the first one hth -Gianluca -- -- 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.
Re: Pedestal introduction question
Where did you see the first :require? I can't find it in the code sample. one deriving from: (:require ... [io.pedestal.app.render.push.templates :as templates] ...) Thanks, Greg -- Sent from my mobile device. Please do not email me anything that you are not comfortable also sharing with the NSA. On Jul 4, 2013, at 7:41 AM, gianluca torta giato...@gmail.com wrote: Hi, I am pretty new to clojure and trying to learn a lot from this great list anyway, looking at the code you point to, it seems that the name templates has two roles: one deriving from: (:require ... [io.pedestal.app.render.push.templates :as templates] ...) one deriving from: (def templates (html-templates/hello-world-templates)) looks like the one used for calling add-template etc. is the first one hth -Gianluca -- -- 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. -- -- 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.
Re: Pedestal introduction question
right, sorry! I found the double role of template in this sample file on the pedestal repo: https://github.com/pedestal/samples/blob/master/chat/chat-client/app/src/chat_client/web/rendering.cljs maybe the doc you originally refer to is inspired by this, but something got lost in the doc -Gianluca -- -- 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.
Re: Pedestal introduction question
Thanks! Yeah it's probably just a mistake in the docs. -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Jul 4, 2013, at 10:08 AM, gianluca torta giato...@gmail.com wrote: right, sorry! I found the double role of template in this sample file on the pedestal repo: https://github.com/pedestal/samples/blob/master/chat/chat-client/app/src/chat_client/web/rendering.cljs maybe the doc you originally refer to is inspired by this, but something got lost in the doc -Gianluca -- -- 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. -- -- 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.
Pedestal introduction question
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.