[Rails] Re: is there simpler way to export html within xml

2009-05-10 Thread Todd Fox
what are you talking about hugh?! :| thanks Marnen, we'll try to render xml using an erb this week and let everyone know if we can do it and how :P -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscrib

[Rails] Re: is there simpler way to export html within xml

2009-05-08 Thread Osiris
My bad MLK. On May 8, 11:40 am, Osiris wrote: > Way to be appreciative of someone trying to help you.  Good luck with > that. > > On May 7, 9:50 pm, Marnen Laibow-Koser > s.net> wrote: > > Todd Fox wrote: > > > thanks Marnen and everyone, do you know of any examples or something i > > > can hav

[Rails] Re: is there simpler way to export html within xml

2009-05-08 Thread Osiris
Way to be appreciative of someone trying to help you. Good luck with that. On May 7, 9:50 pm, Marnen Laibow-Koser wrote: > Todd Fox wrote: > > thanks Marnen and everyone, do you know of any examples or something i > > can have a look at to get my head around it? > > What's to get your head arou

[Rails] Re: is there simpler way to export html within xml

2009-05-07 Thread Marnen Laibow-Koser
Todd Fox wrote: > thanks Marnen and everyone, do you know of any examples or something i > can have a look at to get my head around it? What's to get your head around? Just pretend your XML file is an HTML page, and proceed accordingly with your favorite template language (ERb, Builder, Haml,

[Rails] Re: is there simpler way to export html within xml

2009-05-07 Thread Todd Fox
thanks Marnen and everyone, do you know of any examples or something i can have a look at to get my head around it? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on

[Rails] Re: is there simpler way to export html within xml

2009-05-07 Thread Marnen Laibow-Koser
Todd Fox wrote: > sorry more info on what it's used for would help, the xml is being read > by google maps api so we can load html code inside the popup bubble. > > so yeah we dont really control the consuming end :( It seems to me, then, that you have two good options. Either use ERb and/or

[Rails] Re: is there simpler way to export html within xml

2009-05-07 Thread Todd Fox
sorry more info on what it's used for would help, the xml is being read by google maps api so we can load html code inside the popup bubble. so yeah we dont really control the consuming end :( -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You r

[Rails] Re: is there simpler way to export html within xml

2009-05-07 Thread Hassan Schroeder
On Thu, May 7, 2009 at 9:28 AM, Todd Fox wrote: > we need the html in xml (html wrapped inside the xml) for another > application read and then render that html. Does the html need to be an attribute? Or can it just be within an xml envelope? IOW, do you control the consuming end of this? --

[Rails] Re: is there simpler way to export html within xml

2009-05-07 Thread Colin Law
I am not sure exactly what you would do, I am also not sure exactly what you are doing with the xml. It just seems that an erb view is the ideal tool for generating html to be sent to the client. Is there a lot of xml or is it just a wrapper round the html? If only a wrapper then you could gener

[Rails] Re: is there simpler way to export html within xml

2009-05-07 Thread Todd Fox
Todd Fox wrote: > how would that work? we need the html in xml (html wrapped inside the xml) for another application read and then render that html. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscri

[Rails] Re: is there simpler way to export html within xml

2009-05-07 Thread Todd Fox
how would that work? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To u

[Rails] Re: is there simpler way to export html within xml

2009-05-07 Thread Colin Law
Is it too naive to suggest using the view (or a pseudo view) to generate the html using erb? After all that is what erb is for. Colin 2009/5/7 Todd Fox > > Hi, > > we're exporting a lot of html code within xml, our current method works > but it's very messy - far from perfect, is there a better