There are many different ways to work with templates. Probably one of the
most used approaches (which would fit here as well) is to use XSL
transforms. You may want to google for "Sarissa" as that is a pretty good
javascript implementation of an XSLT engine, nice and fast.

Prototype does have some minimal template abilities, but not very robust.

Try a google for "javascript templating", and you will probably find a slew
of options like TrimPath and the like.

On 6/1/07, Vladislav Gorodetskiy <[EMAIL PROTECTED]> wrote:
>
>
> Hey!
> Is there any way to process the following w/Prototype?
> ....
>   <div>
>     <ext:container>
>       <ext:title>Titile</ext:title>
>       <ext:link url="http://prototypeks.org"; title="Prototype rocks!" /
> >
>     </ext:container>
>   </div>
>
> to
>   <div>
>     <div class="container">
>       <h1 class="title_h1">Title</h1>
>       <a href="http://prototypeks.org";>Prototype rocks!</a>
>     </div>
>   <div>
>
> Thanks!
>
>
> >
>


-- 
Ryan Gahl
Principal, Manager
Nth Penguin, LLC - Consulting
http://www.nthpenguin.com
--
Software Architect
WebWidgetry.com / MashupStudio.com
Future Home of the World's First Complete Web Platform
--
Inquire: 1-262-951-6727
Blog: http://www.someElement.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to