Sasa Zivkov wrote:
> -----Original Message-----
> From: Sasa Zivkov [mailto:sasha@...]
> Sent: 11. apríl 2001 10:08
> To: iron@...
> Subject: RE: [Webware-discuss] stpl - Simple Templates
> > On Wed, Apr 11, 2001 at 12:41:40AM +0200, Tom Schwaller wrote:
> > > B.T.W. Plow = template? and what is Plow?
> > Plow was my original template class, which Sasa incorporated into his
> > package as stpl/template.py . ("Plow" because it has the letters "pl"
> > in it like "template".)
> I was in a hurry to make a working example to be able to support
> my basic idea with some code... Mike agreed with me that I can
> take his Plow.py and continue to modify it according to my
> own needs but with a different name... so I renamed it to template.py
> but obviously forgot to change the doc string.
> Sorry Mike, I also forgot to give you a credit in template.py but
> I will fix this.
B.T.W. Putting a name somewhere will make it easier to remember who
(Well I forget that too all the time ;-))
> > The problem is, each of us wants different things. Tavis and Chuck
> > want robustness and display logic ("if" and "for" constructs). Sasa
> > wants something similar to PHPLib's Template. And I want something
> > simple and minimalistic. However, we are all borrowing code and
> The main thing in stpl is TemplatePage class and two simple concepts: TAGS
> and (nested) BLOCKS.
> TemplatePage currently depends on template.py for parsing templates.
> I am considering to make TemplatePage more
> independent on this particular template implementation and to make it
> dependent on some abstract template class that will define tag and
> block concept.
I'll start to make an overview of all Template classes posted on this
list and how to use them. I'm aware of the fact, that this
is a fast moving target, but I'll try..