K
_Kevin
Anyone know of a decent ruby CSS parser?
_Kevin
_Kevin
Anyone know of a decent ruby CSS parser?
I'm writing a packrat parser library and this would make a fun
example. I've already built a JSON parser with it, so I'm pretty
sure it's up to the challenge. I'm currently wrapping the core in a
DSL to make it easier to use,
Oooh, packrat parsing!
I assume you've seen this stuff:
http://www.lshift.net/blog/2005/08/22/json-for-mzscheme-and-a-
portable-packrat-parsing-combinator-library
Interesting. I hadn't seen that before now. Thanks for sharing.
Anyone know of a decent ruby CSS parser?
From: (e-mail address removed) [mailto:[email protected]] :
# IOWA 1.0 release I have a Ruby CSS DSL -- write CSS with Ruby using a
# syntax that's about as close as I could get it to actual CSS.
this is uver cool. is it possible to plug it in to other non*-iowa framew= orks like nitro and rails?
waiting for ruby css...
This is the opposite of what you are looking for, but with the
upcoming IOWA 1.0 release I have a Ruby CSS DSL -- write CSS with
Ruby using a syntax that's about as close as I could get it to
actual CSS. It supports everything Ruby does, so variables work as
does nesting of selectors into other selectors, and storing a
selector into a variable that can be refered to later. It also
provides a smart caching feature so that if, for instance, one
customizes the generated CSS according to a cookie setting, it can
cache that generated CSS and reuse it without having to execute all
of the DSL code for every request.
The goals are to provide much DRYer CSS using Ruby that looks a lot
like CSS, with easy support for dynamic CSS generation, all covered
under the syntax checking of the Ruby parser (which should help one
catch simple errors). And because it's all Ruby code, it's easy to
write tests to validate dynamically generated CSS.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.