NAME

HTML::FromMail::Object - base-class for convertable items

INHERITANCE

HTML::FromMail::Object
  is a Mail::Reporter

HTML::FromMail::Object is extended by
  HTML::FromMail::Page

SYNOPSIS

DESCRIPTION

METHODS

Constructors

$class->new(%options)

-Option  --Default
 settings  {}
 topic     <required>
settings => \%map

Contains the special settings for each of the topics. This expects a %map from topic names to configuration HASHes. See HTML::FromMail::new(settings).

topic => STRING

A symbolic representation of the group of objects which can be handled by the producer. Each extension of this base class will set a value for this option, so you will usually not specify this yourself.

The topic is used to get the right default settings and templates. See HTML::FromMail::new(settings) and HTML::FromMail::new(templates).

Attributes

$obj->settings( [TOPIC] )

Returns the settings for objects with a certain TOPIC, by default for objects of the current. An empty hash will be returned when not settings where specified.

$obj->topic()

Returns the abstract topic of the producer.

Other methods

$obj->plain2html(STRING)

Convert a STRING into HTML.

SEE ALSO

This module is part of HTML-FromMail version 3.01, built on November 21, 2025. Website: http://perl.overmeer.net/CPAN/

LICENSE

For contributors see file ChangeLog.

This software is copyright (c) 2003-2025 by Mark Overmeer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.