On 4/14/05, Steve V
<ruby-ChEX1j9zMF7JbC0vcoRRxNBPR1lH4CV8@public.gmane.org>
wrote:> Is there a builtin way to capture some HTML with various scripting in
place?
> Then render it later on in the page, and evaluate any scripting contained
> therein at the time of rendering, and not the time of capture?
>
> Thanks,
> Steve
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
Steve,
This is an interesting idea... My off-the-top-of-my-just-woken-up-head
suggestion would be to do something like building a string of ruby
code that, when eval''ed would use the XML::Builder object to build
some HTML for you.... I''m not sure if this is a good solution,
though; it depends on the context in which you''re going to be placing
this logic.
Dave
--
Dave Goodlad
dgoodlad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org or
dave-eHfbeeWWzZOw5LPnMra/2Q@public.gmane.org
http://david.goodlad.ca/