I too would like to know the answer to this. It seems bizarre to me that xhtml is not the default, as is.
On Mar 25, 5:17 pm, Eric Johnson <[EMAIL PROTECTED]> wrote: > I'm trying to server XHTML from a rails app. (The next step will be > to embed some SVG). The code below seems to work. (You can see the > rather trivial output athttp://aikoids.heroku.com/circle/test1.xhtml > ). > > Is the way I'm doing this OK, or will I regret it later? > > If this does make sense, would it be possible to support syntax > coloring for .xhtml.erb files in the Heroku editor? Or should I just > be naming my files ".xml"? Or??? > > Thanks!! > > ------- view code ----------- > ------- (just a hardcoded test -- eventually I'll generate the XML) > ------- > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" > dir="ltr"> > <head> > <title>Test1</title> > </head> > <body> > <h1>Test1</h1> > <p>I am a frog</p> > </body> > </html> > > ------ controller code ------------ > ------ (manually setting the header type) ------ > > def test1 > headers["Content-Type"] = "application/xhtml+xml" > end > > ---- and an extra routing rule --------- > ---- (to support the URL "circle/test1.xhtml") > > map.connect ':controller/:action.:format' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~----------~----~----~----~------~----~------~--~---
