[Catalyst-dev] Re: RFC: Catalyst::View::Email and Catalyst::View::TemplateEmail

A. Pagaltzis pagaltzis at gmx.de
Tue Mar 20 21:21:02 GMT 2007


* Jonathan Rockway <jon at jrock.us> [2007-03-20 15:20]:
> If you have other mime-types, those could be rendered and
> auto-added to the MIME structure.  Convenient.

Then you need a better naming convention than `s[/][-]`, because
the dash is used in many media types. Conveniently, while the
dash is no good, the underscore is. I couldn’t find any language
in RFC 2045 or 2046 that defines the permissible characters, but
the IANA registry does not list any media type with an
underscore.

Also, it shoulnd’t *require* a subdirectory, because oftentimes
no other file than the template will be necessary, in which case
the directory is just clutter. Some additional convention like
`template.$mimetype.tt` should be provided. (If both a file and
directory exist, that should probably constitute an error.)

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst-dev mailing list