Why monkey patch it when you could subclass it? That's the whole
point of the formatters, except for the most basic needs.
> It would be a nice-to-have in Ruport to add properties to the HTML
> formatter that would make easy to adjust the table parameters and set
> style classes for the tags.
How would you like this to work, specifically? If I can see some
pseudo code for what it would look like, maybe I can implement it for
Ruport 2.
-greg
So long as you don't mind making the change system wide:
render :html, :for => [Ruport::Controller::Grouping, Ruport::Controller::Group,
Ruport::Controller::Table,
Ruport::Controller::Row ]
should do the trick in your formatter subclass. I'm aware this sort
of hack leaves something to be desired. The Fatty based formatting
engine will be much more pleasant to work with.
-greg