Warnings are printed to STDERR, you can capture stderr and silence it or use it to generate some comments. An example of us doing something similar during unit tests is here: http://github.com/nex3/haml/blob/master/test/test_helper.rb#L30
On Mon, Oct 12, 2009 at 5:55 AM, Charles Roper <[email protected]>wrote: > > Hey, > > I'm futzing with Sass doing something like this: > > engine = Sass::Engine.new(STDIN.read) > puts engine.render > > But I'm getting warnings back like this: > > WARNING on line 20: > Selector "notcomment2" doesn't have any properties and will not be > rendered. > > Is there any way of turning off these warnings, or perhaps converting > them into CSS comments? > > Ta, > Charles > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
