I'm glad you got things working. Your issue is caused by this line:
http://github.com/nex3/haml/blob/master/lib/sass/plugin/rails.rb#L4

which explicitly sets the template location in rails projects instead of
letting the value derive from the :css_location when it is read.

Chris

On Mon, Sep 28, 2009 at 10:37 PM, Anton
<[email protected]>wrote:

>
> Sass::Plugin.options[:css_location] = "#{RAILS_ROOT}/public/css"
> Sass::Plugin.options[:template_location] = "#{RAILS_ROOT}/public/css/
> sass"
>
> STDERR.puts Sass::Plugin.options.inspect
>
> shows:
>
> {:template_location=>"/Users/atrapp/data/development/commissionV2/
> public/css/sass", :css_location=>"/Users/atrapp/data/development/
> commissionV2/public/
> css", :always_update=>false, :always_check=>true, :cache_location=>"/
> Users/atrapp/data/development/commissionV2/tmp/sass-
> cache", :full_exception=>true}
>
> and - believe it or not - it works like it should! I don't use
> compass, just plain Rails, but it seems to be necessary to set the
> template and the location in Rails (maybe the template is a hash by
> default).
>
> Thank you very much!! I just LOVE haml and sass. They save so much
> work and the code is so efficient :)
>
> Regards,
> Anton
>
> On Sep 28, 9:38 pm, Chris Eppstein <[email protected]> wrote:
> > :css_location is ignored when :template_location is a hash. If you are
> using
> > compass, you should be aware that it sets :template_location to a hash.
> Can
> > you please inspect the full runtime value of Sass::Plugin.options and
> report
> > back on what it is?
> > chris
> >
> > On Mon, Sep 28, 2009 at 12:30 PM, Anton
> > <[email protected]>wrote:
> >
> >
> >
> > > Hi!
> >
> > > I use haml/sass in some of my projects and everything works like it
> > > should (perfect!)...
> >
> > > The question I have is:
> >
> > > In the initializers I try to use:
> >
> > > Sass::Plugin.options[:css_location] = "#{RAILS_ROOT}/public/css"
> >
> > > It simply does nothing. As far as I understand the docs it should put
> > > the css in the public/css directory and use the public/css/sass
> > > directory for the templates, but it simply does nothing (only the
> > > default stylesheets directory works)...
> >
> > > Anything I missed?
> >
> > > Thanks and regards,
> > > Anton
> >
> >
> >
>

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