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! --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
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 <graf.otodrakula-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hey Ryan, howzit? :-) Ryan Gahl a écrit :> 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.I usually went with GoogleAJAXSLT, post-0.4. Do you by any chance have experience enough of both to give a few hints at how they compare? -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Actually, I don''t personally have experience with Google''s tool, but Lindsey Simon (when he was still doing FineTooth, now at Yahoo)... did some research and comparisons when he was building his DataGrid widget... and was my basis when I originally read his findings, for deciding to go with Sarissa. http://development.finetooth.com/?p=15 That article does a good job of talking about the two tools. Granted, he wrote that a while ago, so maybe Google''s offering has improved since then. On 6/1/07, Christophe Porteneuve <tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:> > > Hey Ryan, howzit? :-) > > Ryan Gahl a écrit : > > 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. > > I usually went with GoogleAJAXSLT, post-0.4. Do you by any chance have > experience enough of both to give a few hints at how they compare? > > -- > Christophe Porteneuve aka TDD > tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org > > > >-- 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Oops, my bad, he was at Yahoo for short time, but now he''s actually at Google, I forgot that... so now _he_ may be singing a different tune, lol. On 6/1/07, Ryan Gahl <ryan.gahl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Actually, I don''t personally have experience with Google''s tool, but > Lindsey Simon (when he was still doing FineTooth, now at Yahoo)... did some > research and comparisons when he was building his DataGrid widget... and was > my basis when I originally read his findings, for deciding to go with > Sarissa. > > http://development.finetooth.com/?p=15 > > That article does a good job of talking about the two tools. Granted, he > wrote that a while ago, so maybe Google''s offering has improved since then. > > > > On 6/1/07, Christophe Porteneuve <tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote: > > > > > > Hey Ryan, howzit? :-) > > > > Ryan Gahl a écrit : > > > 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. > > > > I usually went with GoogleAJAXSLT, post-0.4. Do you by any chance have > > experience enough of both to give a few hints at how they compare? > > > > -- > > Christophe Porteneuve aka TDD > > tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org > > > > > > > > > > > -- > 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 >-- 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hey Ryan, Ryan Gahl a écrit :> http://development.finetooth.com/?p=15I wish I could read that, but the Wordpress behind it exhausted PHP''s default 8MB heap size ;-) A dollop of background: GoogleAJAXSLT was originally written by NYC Googler Steffen Meschkat, and I started using it when writing my previous book (FR only), which needed client-side XSLT capabilities (mostly for RSS/Atom/WS transformations). It had been dormant for a long time, and I found a few bugs in there (e.g. a scoping bug on xsl:for-each, which is pretty bothersome), fixed them and sent the patches to Steffen, who blended them in and released a fixed, improved version in September 2006. So I don''t know when this article was written, but I know GoogleAJAXSLT improved in 09/06 :-) I can also say it features impressive coverage of XPath functions, which surprised me at the time, as the lib is not too bloated. I''ll check out Sarissa, though :-) -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Having worked 3+ years with XSLT, I usually avoid it. :) Vladislav: Any chance you can preprocess this on the server? This would (probably) save you from many headaches and free you from using XSLT engines on the client. Best, Thomas Am 01.06.2007 um 16:35 schrieb Ryan Gahl:> 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 <graf.otodrakula-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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! > > > > 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Well, I was impressed by Backbase''s BXML when I was wirking with it about a year ago. Now I have to give my client something similar to BXML. He doesn''t care about JavaScript or server-side processing of this "markup language" but I''m interested to find a better way to do this. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---