[Petal] Question about Petal::Mail, aka stupid P::M tricks

William McKee william at knowmad.com
Thu Jan 15 14:42:59 GMT 2004


While playing around with my P::M templates, I came to discover that I
can embed my entire email inside of a <pre> tag for functionality that
is similar to "normal" mail programs. Even better, Petal will populate
and strip all tags inside of the pre. I can use a span tag like the
following to insert dynamic data into my email message:

    <span petal:replace="data">orig_data</span>

This begs the question of why use any other tags inside a mail body. It
seems it'd be easiest to just throw everything into a pre tag and use
replaced span tags to insert data. I guess there may be a few occassions
where the p and dl tags may be useful, I can't think of any right now.
This may be the beginnings of a Cookbook pod.

William

-- 
Knowmad Services Inc.
http://www.knowmad.com


More information about the Petal mailing list