[ANN] garden-watch

235 views
Skip to first unread message

Timothy Washington

unread,
Feb 4, 2014, 9:03:55 PM2/4/14
to clo...@googlegroups.com
garden-watch is very similar to hiccup-watch (previous ann). But this time, we're compiling down to CSS, using the Garden library. Again, this is just a leiningen watcher plugin that monitors for changes in your Garden source files. 

And again, this is new software. So feel free to use, modify and make suggestions and / or pull requests. Treat this tool the same way you would treat guard-sass. I like to serve up just raw HTML files and templates. So both these tools fit nicely into my toolbox.

Tim Washington 

Dave Sann

unread,
Feb 5, 2014, 2:50:56 AM2/5/14
to clo...@googlegroups.com
FYI, I think lein garden does this already. is there a particular difference?

Timothy Washington

unread,
Feb 5, 2014, 7:45:43 AM2/5/14
to clo...@googlegroups.com
Hey Dave, 

Thanks for that heads up. I originally wanted auto-compiling for HAML and SCSS. But then thought why, when I could just use edn with Hiccup and Garden. Now, a lein-hiccup, or some auto compile tool doesn't exist to my knowledge. So i) I had to do that work anyways. Then I spent 20 mins replicating the functionality for Garden. Also I think lein-garden tracks edn style definitions, inlined in your existing Clojure code, whereas ii) I wanted a separate directory watcher on edn files (no namespaces needed). 

But there's nothing that says that functionality in garden-watch couldn't be collapsed into lein-garden. It's pretty straightforward code. 


Tim Washington 

Joel Holdbrooks

unread,
Feb 5, 2014, 11:04:30 PM2/5/14
to clo...@googlegroups.com
The idea to watch edn or garden files was a consideration of lein-garden but decided against it because, personally, I felt it was giving up a lot. However, some folks may prefer this approach and, hopefully, it suits them just as well.

Timothy Washington

unread,
Feb 5, 2014, 11:42:48 PM2/5/14
to clo...@googlegroups.com
Ok, that's fine. Definitely good to have both ways to tackle the problem. But I'm curious. What do you feel is being given up by watching garden files? 


Thanks 

Tim Washington 

Joel Holdbrooks

unread,
Feb 5, 2014, 11:44:06 PM2/5/14
to clo...@googlegroups.com
Clojure.

--
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
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
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/GyKBpfEFkqg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Timothy Washington

unread,
Feb 6, 2014, 9:07:54 AM2/6/14
to clo...@googlegroups.com
Lol, fair enough :)
Reply all
Reply to author
Forward
0 new messages