
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] [more] / [more-list]
Joachim Leidinger <jojo@blackpoint.de> writes:
> "Stefan Hornburg (Racke)" wrote:
> [DEL]
> > > [seti morestuff]
> > > [decade-prev] <B>(-10)<<</B> [/decade-prev]
> > > [prev-anchor] <B><</B> [/prev-anchor]
> > > [more]
> > > [next-anchor] <B>></B> [/next-anchor]
> > > [decade-next] <B>>>(+10)</B> [/decade-next]
> > > [/seti]
> > > [perl]
> > > $_ = $Safe{'scratch'}->{'morestuff'};
> > > s/HREF/class\=\"treffer\"\ HREF/g;
> > > $Safe{'scratch'}->{'morestuff'} = $_;
> > > return '';
> > > [/perl]
> >
> > You know about $var =~ s/.../.../g; ?
>
> Hmmm...I've no clue what you mean. It seems to me, I've a knot in my
> brain and this knot prevent my brain to understand you. :-(
Optimization for the stuff above:
1. use two statements only
[perl]
$Safe{'scratch'}->{'morestuff'} =~ s/HREF/class\=\"treffer\"\ HREF/g;
return '';
[/perl]
2. return is not necessary
[perl]
$Safe{'scratch'}->{'morestuff'} =~ s/HREF/class\=\"treffer\"\ HREF/g;
'';
[/perl]
3. SYNTAX =~ s/MV/IC/;
[perl]
$Scratch->{'morestuff'} =~ s/HREF/class\=\"treffer\"\ HREF/g;
'';
[/perl]
4. calc is faster than perl
[calc]
$Scratch->{'morestuff'} =~ s/HREF/class\=\"treffer\"\ HREF/g;
'';
[/calc]
>
> > I think that's ugly. We should support passing arbritray attributes
> > for the <a> tag in more lists.
>
> Do you mean any kind of supporting of arbitrary attributes like
>
> [more-list link="blue" color="green" face="Helvetica" size="10" and so
> on....]
>
> for the <a> tag?
Sth like that. Maybe a variable/value serves better.
Ciao
Racke
--
Racke happily hacks Interchange and maintains Debian packages like Courier.
For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users