I have some similar experience, put here try to be helpful 
I am in a team:

   1. 1 designer:  No experience with Clojure, little knowledge about 
   programming, but knowing HTML & CSS well
   2. 1 fronend developer: No experience with Clojure, knowing JS & HTML 
   well,
   3. 2 Clojure coder. 

Everyone commit code: contribute directly, everybody run the same code!

The things we do:

   1. A bash script that start the ring web app, like  ./scripts/run, for 
   everybody to run the code easily.
   2. Templating by  Mustache <https://github.com/shenfeng/mustache.clj>  : 
   Mustache is very simple: I managed to explain mustache to them in less than 
   10 minutes.  And reload is easy!

(ns xxxx.tmpls
  ;; templates => clojure functions : templates/help.tpl => help
  (gen-tmpls-from-resources "templates" [".tpl"]))
;;; reload template, put it in your middleware. make sure only execute in dev 
mode(require :reload 'xxxx.tmpls)


There is another tool I write you may find interesting:  
http-watcher<https://github.com/shenfeng/http-watcher>
Basically, it's a web server for web developers: automatically refresh 
browser when code changed.  It's quite useful for our team. 

On Friday, January 11, 2013 7:28:02 AM UTC+8, larry google groups wrote:
>
>
> So, I am working on a web app that is buillt with Clojure/Ring/Jetty 
> and, importantly, Enlive. My directory structure is like this: 
>
> /resources 
>     /public 
>         /css 
>         /js 
>         /img 
>     /templates 
>
> /src 
>     /discovery 
>         core.clj 
>
>
> The great thing about Enlive is that the templates are pure HTML. This 
> makes it easier for graphic designers and frontenders to work with 
> them directly. I am working with a designer and frontend developer, 
> who  have absolute power over the stuff going into the /resources 
> folder. 
>
> I have 2 questions: 
>
> 1.) In my routes, I am using (wrap-resource) instead of (wrap-file). 
> Is there any way to enable live updates, so that if the designer 
> changes the images in /resources/public/img, they can then see the 
> changed images when looking at the app in their browser? Right now I 
> have to recompile the app and restart it for change to be visible to 
> the designer. 
>
> 2.) I notice that if a change is made in /resources, but no change is 
> made anywhere else, then if I run "lein compile" nothing happens. Is 
> there a way to force lein to compile? 
>
> I have little insight about how to build a multiperson workflow while 
> doing Clojure development. One thought I had: I could automate the re- 
> build of the app, and give the designer an easy way to trigger that 
> rebuild (click a button in Jenkins -- easy enough because we rely on 
> Jenkins for all of our builds, and the interface is simple enough for 
> non-programmers to handle). But I would like to hear what other people 
> do. 
>
>
>
>

-- 
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

Reply via email to