Re: Mason2: no default HTML escaping

Pedro Melo <[email protected]>
Newsgroups gmane.comp.web.mason.user
Message-ID <CACCxPi076XyaVt=udiQeGjxcTHOX+cnJ8uzv=vwJffU0=mQ26g@mail.gmail.com>
On Wed, Mar 7, 2012 at 9:59 AM, Jérôme Étévé <[email protected]> wrote:
> On 7 March 2012 09:49, Pedro Melo <[email protected]> wrote:
>>> #1 is hard to do because Mason is supposed to be content-type agnostic - usable for HTML generation but also other kinds of content generation.

(this quote is not mine, btw...)

> The default filter is defined in the interpreter instance. If you need
> to use Mason to generate any type of content, you can perfectly have
> different interpreters with different default filters. Anything wrong
> with that?

Nothing, but its not that simple.

If I have a website that generates HTML (normal pages), JSON (AJAX or
API) and XML (feeds), should I have several interpreters? And use
Plack::Builder to mount each of them on different prefixes?

Doable but ugly :)


Bye,
-- 
Pedro Melo
@pedromelo
http://www.simplicidade.org/
http://about.me/melo
xmpp:[email protected]
mailto:[email protected]

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.