[Proto-Scripty] Is there a way to insert a template-based element and retain a reference to it at once?

2011-01-25 Thread Walter Lee Davis
I've done the following a lot in a piece of code I'm working on: var t = new Template('div id=id_#{num}.../div'); $R(1,4).each(function(n){ $('page').insert(t.evaluate({num:n})); //and then I need to add some extras to that div //so I end up doing this to get a handle on

Re: [Proto-Scripty] Is there a way to insert a template-based element and retain a reference to it at once?

2011-01-25 Thread Richard Quadling
On 25 January 2011 16:15, Walter Lee Davis wa...@wdstudio.com wrote: I've done the following a lot in a piece of code I'm working on: var t = new Template('div id=id_#{num}.../div'); $R(1,4).each(function(n){        $('page').insert(t.evaluate({num:n}));        //and then I need to add some