-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render CSS to a file #1
Comments
Good catch. I've been so focused on getting the compiler/code generation part off the ground I hadn't thought about how best to approach that. But I think it's something simple enough it could be added soon. In the mean time, the I'll try to get this in to the beta version by the end of the week, if not it'll definitely be in |
I am trying to build a CSS Framework based on garden, at first I wanted to build my own css generation lib 'cause I wasn't satisfied buy neither gaka nor cssgen. Now that there is garden I don't need to create something else. I am pretty new into clojure, I don't know good practices but I can contribute by dealing with small tasks if u r up to correct my mistakes along the way |
Sorry it's taken me a bit to get back to you on this issue. I've done a bit of thinking about it and my thoughts are this: having a Since you're getting started with Clojure and I don't want to leave you out in the cold, you could try a variation on this: (ns my-project.stylesheets)
(def stylesheets-dir "resources/public/stylesheets/")
(def screen
(css
; Rules
))
(defn- save-stylesheet
[filename styles]
(with-open [writer (clojure.java.io/writer (str stylesheets-dir filename)]
(.write writer styles)))
(save-stylesheet "screen.css" screen-css) This is pretty close to code I'm using right now to render and save my stylesheets to disk during development. If you're developing with an editor like Emacs or Vim that's able to communicate with nREPL, all it takes is loading the file to recompile the stylesheet(s). Of course, you may want to tweak this a bit if you want the stylesheets to be recompiled before deployment, etc.
I'd love to see how that goes. Now that Garden has media query support it should be easier to make a really nice framework of some kind. Though it'd take an act of god, having something like Compass, Foundation, or Gumby(http://gumbyframework.com/) brought to the Garden world would be nothing short of awesome. There's a lot of awesome stuff to bring over like modular scale and grid systems. Be sure to keep an eye on the library over the next few weeks though as I'm planning to have the library at |
@erwagasore So I'd like to apologize for my initial resistance to adding this feature to the library. It was added in d5da87d and will be available for use in Thanks again! |
I am glad you decided to add this feature. Nice work man, keep it up. Eugene R. On Tue, Sep 17, 2013 at 10:16 AM, Joel Holdbrooks
|
in gaka if I remember correctly you can specify where the group of rules will be saved inside resources?
The text was updated successfully, but these errors were encountered: