The your own resources subdirectory is merged over the admin one, the structure visible here: caribou admin templates<https://github.com/caribou/caribou-admin/tree/master/resources/templates>
And yes, anything which has the same directory structure in your project is merged over the admin templates (this is useful for per-project customization, in my experience). The javascript and css are stashed under resources/public/_admin/, and it would probably be a good idea to move all the admin templates under a unique subdirectory as well, but it is a more complex change. I am seriously considering creating a templates/_admin/ and bumping all admin templates under that path. On Friday, November 15, 2013 5:50:28 AM UTC-8, Tassilo Horn wrote: > > Hi all, > > I'm just toying around with Caribou. I successfully created the models > of my toy app, and now I started defining routes, pages, and templates. > I started with this: > > --8<---------------cut here---------------start------------->8--- > (def routes > [["/" :home > [["login" :login []]]]]) > > (def pages > {:home {:GET {:controller 'home :action 'home :template "home.html"}} > :login {:GET {:controller 'login :action 'login :template > "login.html"}}}) > --8<---------------cut here---------------end--------------->8--- > > And wow, indeed http://localhost:33333/login now shows the page > generated by filling out the login.html template like my login action > said. > > However, that has also broken the Admin login page. Visiting > http://localhost:33333/_admin/login now also shows my custom login page, > but the template variables aren't filled out (because that's rendered by > the admin controller, not my controller). > > So it seems that template names have to be unique and in order not to > interfere with Admin templates. Is that intended? I guess no... > > For the time being, I'll prefix my custom templates with the project > name in order to have them unique. > > Bye, > Tassilo > -- -- 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.