I am currently writing CSS files from scss/sass templates located in
the database on create and update actions.  This is simple using
Sass::Engine.  The only part that doesn't work is @import
functionality because it is looking on the file system rather than
database.  Is there any concept of setting up File System classes
(such as available in Liquid - 
http://github.com/tobi/liquid/blob/master/lib/liquid/file_system.rb)
that can override where @import looks?  Should I look at changing the
way Sass::Tree::ImportNode works?

Best Regards,
David Baldwin

On May 26, 12:34 pm, Nathan Weizenbaum <[email protected]> wrote:
> The best way to do this is probably with custom Sass functions. 
> Seehttp://sass-lang.com/docs/yardoc/Sass/Script/Functions.htmlfor details.
>
> On Wed, May 26, 2010 at 3:20 AM, Hansv <[email protected]> wrote:
> > Hi,
>
> > I was wondering if there is an easy way to have my sass files read
> > from my rails db.
> > I want to be able to have users pick a color in my admin interface and
> > have that color then be used in a sass variable.
>
> > Is this doable?
>
> > Thanks,
> > Hans
>
> > --
> > 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] <haml%[email protected]>.
> > For more options, visit this group at
> >http://groups.google.com/group/haml?hl=en.
>
>

-- 
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.

Reply via email to