On Sat, Feb 8, 2014 at 3:25 PM, sri <[email protected]> wrote:

> Btw. It would be nice if someone turned MIME::Types into a Mojolicious
> plugin that registers all types in existence with app->types. ;)


I think this is done.  Much more simple than I expected, assuming I
understood the request properly.

https://github.com/s1037989/Mojolicious-Plugin-MimeTypes

There's a test file in the package, too. But for a real world
demonstration, see lines 14 and 21 of
https://gist.github.com/s1037989/9328210

What should be done about conflicting types?  e.g. dwg is
application/x-acad, image/x-dwg, and image/vnd.dwg

-- 
*Keystone IT <http://www.keystone-it.com> NOTICE:*  This e-mail (including 
attachments) is covered by the Electronic Communications Privacy Act, 18 
U.S.C. 2510-2521, is confidential and is legally privileged.  If you are 
not the intended recipient, you are hereby notified that the unauthorized 
use, in any way, of this communication is strictly prohibited.  If you have 
received this e-mail in error, please delete it immediately and call us at * 
(314) 
621-9500* to correct the problem.

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to