[KinoSearch] Subclassable Highlighter
Father Chrysostomos
sprout at cpan.org
Sun Feb 3 16:11:26 PST 2008
On Feb 3, 2008, at 2:16 PM, Marvin Humphrey wrote:
>
>
> How about this instead?
>
> * Eliminate Encoder, Formatter, SimpleHTMLEncoder, and
> SimpleHTMLFormatter.
> * Add public encode() and highlight() methods to Highlighter.
>
> sub encode { return encode_entities( $_[1] ) }
> sub highlight { return '<strong>' . $_[1] . '</strong>' }
Actually, I think that’s worse than the current system. If I wanted
simply to override the default HTML tags, I’d be much more comfortable
with create an object than a class.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.rectangular.com/pipermail/kinosearch/attachments/20080203/18e76d41/attachment.htm
More information about the kinosearch
mailing list