Re: [Mason] XHTML content type

2018-04-16 Thread sergio
On 16/04/18 14:56, Shane McCarron wrote: >> https://www.w3.org/TR/html5/iana.html#application-xhtmlxml And html5 continues to pay lip service to the old media types. Could you provide proof link that will show this media type is old or deprecated. But there is no reason to use them that I

Re: [Mason] XHTML content type

2018-04-16 Thread Shane McCarron
Sure. And html5 continues to pay lip service to the old media types. But there is no reason to use them that I can imagine. The user agents don't do anything with them as far as I am aware. On Mon, Apr 16, 2018 at 12:49 AM, sergio wrote: > On 15/04/18 21:29, Shane McCarron wrote: > > xhtml

Re: [Mason] XHTML content type

2018-04-15 Thread sergio
On 15/04/18 21:29, Shane McCarron wrote: xhtml media types are basically deprecated now anyway. > You can see this at > https://www.w3.org/TR/2018/SPSD-xhtml11-20180327/ for example. Shane, I'm sorry for direct reply. Of course xhtml11 and xhtml2 are dprecated, but have you seen this? https

Re: [Mason] XHTML content type

2018-04-15 Thread Shane McCarron
Apropos of nothing, but the xhtml media types are basically deprecated now anyway. You are much better off using a doctype of html and letting the user agent do the right thing with the content. XHTML documents don't get special handling in any modern user agents. On Sun, Apr 15, 2018 at 10:3

Re: [Mason] XHTML content type

2018-04-15 Thread Guido Brugnara
- Il 15-apr-18, alle 16:29, sergio ser...@outerface.net ha scritto: > On 15/04/18 16:50, Guido Brugnara wrote: > . > > I'm using mason2 + poet + plack + mod_perl. And as understand the > content type is a poet responsibility. Using file "/Base.mc" you can check if work this e

Re: [Mason] XHTML content type

2018-04-15 Thread Roman Pavlov
On 15.04.2018 17:29, sergio wrote: I'm using mason2 + poet + plack + mod_perl. And as understand the content type is a poet responsibility. Check server.default_content_type setting. See Poet::Manual::Configuring --

Re: [Mason] XHTML content type

2018-04-15 Thread sergio
On 15/04/18 16:50, Guido Brugnara wrote: I'm used to calling the new one with Mason2 name. OK migration is not painless ;-) It's not so painless as I thought (: Perhaps you use Catalyst or Dancer or other frameworks with Mason2 so the solution changes according to them. I'm using ma

Re: [Mason] XHTML content type

2018-04-15 Thread Guido Brugnara
- Il 15-apr-18, alle 14:46, sergio ser...@outerface.net ha scritto: > On 15/04/18 09:12, Guido Brugnara wrote: > >> You can create a file named "autohandler" in the web root like this: >> >> % $r->content_type('application/xhtml+xml'); >> % $m->call_next; >> >> Details in: https://masonbook

Re: [Mason] XHTML content type

2018-04-15 Thread sergio
On 15/04/18 09:12, Guido Brugnara wrote: You can create a file named "autohandler" in the web root like this: % $r->content_type('application/xhtml+xml'); % $m->call_next; Details in: https://masonbook.houseabsolute.com/book/chapter-3.html It's 21 century now and mason2-poet-plack days. --

Re: [Mason] XHTML content type

2018-04-14 Thread Guido Brugnara
- Il 15-apr-18, alle 4:11, sergio ser...@outerface.net ha scritto: > Hello. > > Is it possible to server all pages as 'application/xhtml+xml' by default? You can create a file named "autohandler" in the web root like this: % $r->content_type('application/xhtml+xml'); % $m->call_next; Detai

[Mason] XHTML content type

2018-04-14 Thread sergio
Hello. Is it possible to server all pages as 'application/xhtml+xml' by default? -- sergio. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot