Re: [Wikitech-l] Simple Page Object model using #lst

2011-01-25 Thread Brion Vibber
On Tue, Jan 25, 2011 at 10:27 AM, Platonides wrote: > Had LST used to mark sections, > instead of content, it > would be as easy as traversing the preprocessor output, which would > already have the sections splitted. > It was done this way in order to allow overlapping sections: LST was creat

Re: [Wikitech-l] Simple Page Object model using #lst

2011-01-25 Thread Platonides
Had LST used to mark sections, instead of content, it would be as easy as traversing the preprocessor output, which would already have the sections splitted. Alex Brollo wrote: > 2011/1/25 Alex Brollo > > Just to test effectiveness of such a strange idea, I added some formal > section tags int

Re: [Wikitech-l] Simple Page Object model using #lst

2011-01-25 Thread Alex Brollo
2011/1/25 Alex Brollo Just to test effectiveness of such a strange idea, I added some formal section tags into a 6 Kby text section.txt, then I wrote a simple script to create a "data area" , this is the result (a python dictionary into a html comment code) appended to the section.txt file: th

Re: [Wikitech-l] Simple Page Object model using #lst

2011-01-25 Thread Alex Brollo
2011/1/25 Jesse (Pathoschild) > On Tue, Jan 25, 2011 at 8:14 AM, Alex Brollo > wrote: > > If this would happen, I imagine that the original page could be > considered > > an "object", t.i. a collection of "attributes" (fragments of text) and > > "methods" (template chunks). > > Labeled Section

Re: [Wikitech-l] Simple Page Object model using #lst

2011-01-25 Thread Jesse (Pathoschild)
On Tue, Jan 25, 2011 at 8:14 AM, Alex Brollo wrote: > If this would happen, I imagine that the original page could be considered > an "object", t.i. a collection of "attributes" (fragments of text)  and > "methods" (template chunks). Labeled Section Transclusion can be used this way, but it's not