Could you create the patch with git format-patch and post it on pastie? Olek wrote: > Hi > > In my project I wanted to have one master sass file main.sass which > includes couple nested files, _account.sass and _details.sass, purely > from organizational perspective. Those subordinate sass files are > never accessed directly, and can not even be rendered properly alone > because they refer to some constants defined in main.css > > I was very excited when I found that files that start from underscore > are excluded from being rendered into css files. But that code will > work only if sass files are in the top level directory. As soon as > they are in subdirectory, sass plugin will attempt to render them, > generating css files with errors. > > Following one-line patch fixed problem for me, and I suspect that haml/ > sass team might want to apply it to trunk. > > Sorry for posting patch here, if there is a better place to submit > patches, let me know. > > Index: lib/sass/plugin.rb > =================================================================== > --- lib/sass/plugin.rb (revision 1189) > +++ lib/sass/plugin.rb (working copy) > @@ -111,7 +111,7 @@ > end > > def forbid_update?(name) > - name[0] == ?_ > + name.sub(/^.*\//, '')[0] == ?_ > end > > def stylesheet_needs_update?(name) > > > > >
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
