guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] add web/mime support


From: Nala Ginrut
Subject: Re: [PATCH] add web/mime support
Date: Thu, 17 Jan 2013 16:17:01 +0800

On Wed, 2013-01-16 at 11:46 +0100, Andy Wingo wrote:
> Hi,
> 
> On Thu 23 Feb 2012 15:53, Nala Ginrut <address@hidden> writes:
> 
> > There's no mime support in Guile module, so I modified the mime code of
> > my project Ragnarok and format a patch.
> >
> > It's easy to use:
> > (use-modules (web mime))
> > (define mime (make <mime>))
> > (mime:guess mime 'pdf)
> > ==> application/pdf
> > (mime:guess mime 'php)
> > ==> application/x-httpd-php
> 
> Just a note to say that I liked this module, and that it would be a
> great thing to have in the guildhall.
> 
> It would be nice to use
> http://freedesktop.org/wiki/Specifications/shared-mime-info-spec on free
> software systems.
> 

Are you suggesting use mime-info of freedesktop? I think we can write a
parser for that XML files, but it makes Guile depends on desktop.
Did I miss something?

> Cheers,
> 
> Andy





reply via email to

[Prev in Thread] Current Thread [Next in Thread]