link=msg=262641 date=1308472960]
I belong to the school of semantics, by far, although I think using inheritance is only sensible.
Best of both worlds here
:)I know I'm often the first person to write my own version of something, and I love learning from it and see if I can do better. And here as well, I think writing a PHP version makes a lot of sense.
WeCSS is not a PHP version of Sass per se -- it's more like a Sass-inspired original library.
But, considering Sassy recently moved to using CSS-style syntax,
...And I'm not going down the same route.
and I personally hate Python style syntax, perhaps it makes sense to gravitate to the rules of another syntax?
By another syntax, you mean the 'regular' CSS syntax?
Well, two things.
First, Sass added support for 'normal' syntax because of users requests. Probably couldn't get the hang of it... Dunno. From what they said on their website, it's quite clear to me they're still going to use the Sass syntax themselves.
Secondly, Wedge *does* support the CSS syntax. Really. It's just that you can't mix css and wecss syntaxes together. Only makes sense to me... Once you see my source code, you'll understand how complex it is already.
And because of multiple stylesheets and the styling system I described elsewhere, you can't use css syntax in any files that are related to the index stylesheet (i.e. index.css, sections.css, and any overrides like index.ie6.css etc.)
However, you may perfectly use wecss syntax in the index file, and css syntax in your plugin's file (my-stupid-addon.css), as long as you don't add it to the main file list. (i.e. your plugin must load it separately through add_css_file(), instead of adding it to the css file list array.)
One thing to note, though, is that I haven't tested the extent of what you can do in the css syntax. While all functions are available (color, etc), pseudo-language constructs like 'extend' may not be available (although you can use the alternative syntax for it, the 'base:' rule.)
That could make the documentation needs lighter.
I'm foolishly hoping that themers will find enough documentation just by reading through the index.css file
;) It has an introduction comment as well... (About a page's worth of details.)