This is what I have come up with so far: https://gist.github.com/816195
I created a new Template Handler that would process my template with ERB first, then render it with Sass. Thanks to Andrew Vit and Chris Eppstein for though input: (http://groups.google.com/group/compass-users/browse_thread/thread/ 6c987ebf2fcaf33b/f41c661d4ddac618) On Feb 7, 6:04 pm, Ray <ticktricktr...@gmail.com> wrote: > Is it possible to generate CSS dynamically from a controller#view? > > I want my users to be able to define css attributes for certain boxes. > But instead of using them as inline css, I rather want to interpret > some ruby variables and return a custom css class. Inline CSS is far > to limited. > > What I tried is create a 'show.css.haml' template with :sass at the > beginning. But this does not support sass variables, neither any ruby > within the sass part. > > If you have suggestions or want to know more details, I could use any > input at this point. -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to haml@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.