Nigel Metheringham wrote:
> I have a batch of data as db tables (with Class::DBI) which I format for
> HTML using Template Toolkit.
> 
> I also want to generate plain text emails with reasonably attractive
> formatting of this data.
> 
> One approach would be to write a script that formats these using the
> inbuilt perl formatting directives.
> 
> Is there a clean TT method of doing something like this - ie "picture
> based formatting" with the ability to line wrap, fill, indent etc.

You might look at another approach. Still use TT to generate the normal
page, and if you need to email it you can use HTML::FormatText (or
HTML::FormatText::WithLinks) to change it to plain text for the emails.
I've been pretty happy with it.

-- 
Michael Peters
Developer
Plus Three, LP


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to