[Rt-devel] the /CLASS modifier in ParseFormat

Nicholas Clark nick at ccl4.org
Mon Aug 20 16:22:37 EDT 2007


On Tue, Aug 21, 2007 at 12:18:47AM +0400, Ruslan Zakirov wrote:
> as well it may be better to join classes instead of replacing.

> > On Aug 20, 2007, at 11:55 AM, Nicholas Clark wrote:

> > > -    $m->out('<td class="collection-as-table" ');
> > > +    my $class = $column->{class} || 'collection-as-table';
> > > +    $m->out(qq{<td class="$class" });

I wasn't sure about that. I initially had the code appending to the class,
but it occurred to me that then there wasn't a way to take out
'collection-as-table' if you wanted to do that. Whereas this way, you can
add it in if you also need it.

Nicholas Clark


More information about the Rt-devel mailing list