I seem to have a lot of time on my page rendering spent in
sass_old_process.
Here is highlighted section from RPM (below sig). Is this actual SASS
functionality, or is a SASS hook and the rendering time is elsewhere and not
really SASS related?
Any tips for tuning SASS? I use lots of small .sass files and @import
statements.
Thanks,
Nick
File: /Library/Ruby/Gems/1.8/gems/haml-2.1.0/lib/sass/plugin/rails.rb
unless defined?(Sass::RAILS_LOADED)
Sass::RAILS_LOADED = true
Sass::Plugin.options.merge!(:template_location => RAILS_ROOT +
'/public/stylesheets/sass',
:css_location => RAILS_ROOT +
'/public/stylesheets',
:always_check => RAILS_ENV !=
"production",
:full_exception => RAILS_ENV !=
"production")
# :stopdoc:
module ActionController
class Base
alias_method :sass_old_process, :process
def process(*args)
if !Sass::Plugin.checked_for_updates ||
Sass::Plugin.options[:always_update] ||
Sass::Plugin.options[:always_check]
Sass::Plugin.update_stylesheets
end
# this line is highlighted
sass_old_process(*args)
end
end
end
# :startdoc:
end
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---