Currently I'm working on localizing my RoR app. I have each locale load
a different set of assets, namely the javscripts, css, images, etc.,
placed under different locale folders.
The issue I faced is having SASS to be able to parse/load its templates
in various folders instead of just one. Looking at the sass/ plugin.rb,
I see that the options that affect file paths are the following:
options - :template_location, :css_location, :load_paths
What I'm suggesting is to have sets of the 3 options e.g.
options[:file_paths] = [
{ :template_location => 'RAILS_ROOT + '/public/stylesheets/sass',
:css_location => RAILS_ROOT + '/public/stylesheets',
:load_paths => nil #defaults to :template_location
},
{ :template_location => 'RAILS_ROOT + '/public/zh/stylesheets/sass',
:css_location => RAILS_ROOT + '/public/zh/stylesheets',
:load_paths => nil #defaults to :template_location
},
{ :template_location => 'RAILS_ROOT + '/public/es/stylesheets/sass',
:css_location => RAILS_ROOT + '/public/es/stylesheets',
:load_paths => nil #defaults to :template_location
}
]
I'll be hacking this into my current project. What do you guys think?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---