Monday, October 19, 2009

[Rails] Re: Huge XML Template

Srinath A. wrote:
> Hi,
>
> I am having a xml template containing 5000 lines of code .
> Now i need to generate the template dynamically in ruby on rails .
> My requirement is every time a user clicks on GO , a new xml template
> will generate for every user like "username.xml".
> I am not showing the xml template on screen , it will generate and
> create on backend .
> The template contains almost 3000 lines of code as static and only some
> lines will be customized.
> How should i start? Do i need to write by hand all lines using xml
> builder or
> is there any alternative ??

You don't have to use Builder for XML. ERb and (in most cases) Haml
would work just as well.

But if 3000 lines are going to be static, perhaps you can somehow give
the user just the non-static part?

>
>
>
> thanks,
> sri...

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
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 unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate