I've seen this, and I think that DCSS' goals are fundamentally different than those of Sass in several important ways.
Perhaps most importantly, DCSS doesn't try to be a new, better way of formatting CSS... it's just an extension to nromal CSS, providing things analogous to Sass's nesting and constants. While it provides similar technical benefits in this respect, it doesn't make the CSS look any nicer (in fact, all those brackets make it less readable). One of the primary goals of Sass is to allow the user to write CSS in a nice format, while that doesn't seem to be a goal of DCSS. Another important point of difference is that DCSS is dynamic, and hooks into the Rails view engine, while Sass is more or less static. We made the choice to have Sass be static purposefully. For one, we didn't think that there was actually very much use for dynamically-generated CSS (and anything that really needs to be done in that area can be done with a <style> tag). We also knew that CSS sheets were accessed a lot (likely more than any single page), and thus needed to not put a large load on the server, like the kind created by starting up an ActionView stack on every request. Finally, most browsers cache CSS anyway, so having it dynamically-generated doesn't really work. Because Sass is static, there's a one-to-one correspondence between templates and CSS, so it's able to generate stylesheets only when the template has changed, and able to put them in the public/stylesheets directory so they can be served statically. In summary, I think the goals and functionality of Sass are fundamentally different than those of DCSS. - Nathan askegg wrote: > On Feb 1, 6:51 pm, "Thibaud Guillaume-Gentil" > <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> I like rails for server code, now I like HAML for coding html but we >> still lack a proper/clean/pure way of writingCSS! >> >> Do you know an HAML like forCSS? >> >> Thank's >> >> Thibaud Guillaume-Gentil >> > > I know I am late, but : http://myles.id.au/2006/11/20/introducing-dcss > is close. > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
