On Tue, 11 Jun 2002, Hoehle, Joerg-Cyril wrote:

> o Why do you use <TMPL_xyz istead of <!-- TMPL_xyz -->?
> Did this prove to be easier for the web-designers?

Both are supported.  I find the former easier to type but some people like
the latter.  With filter you can easily support any tag syntax you want!

> o Why don't you allow a closing /TMPL_VAR?

It's not a block construct.  But if you want it it's very easy to support
with filter.

> o What do you feel about XSLT?

It's not my kind of toy.  As far as I can tell it's just another
code-in-the-template system.  Sure, the code is written as XML but that
doesn't really change anything.  People that can work in XSLT are
programmers in my book.

> o TMPL_INCLUDE documentation is unclear about well-formedness. In my
> Lisp/Scheme code, the included file must be well-formed w.r.t. TMPL_xyz
> opening/closing tags. I.e. you cannot have a /TMPL_IF in the included
> file whose matching TMPL_IF would be in the parent.

No, the contents of a TMPL_INCLUDE need not be well-formed.  You can do:

  <tmpl_loop foo>
    <tmpl_include end.tmpl>

And in end.tmpl:

  </tmpl_loop foo>

> o I deviated from your scoping rules and provide lexical scoping, like
> in programming languages. So within TMPL_LOOP one can access all
> variables defined outside. That solves Jacques Poulin's problem. As I
> said, I ought to write a paper.

That's what you get with the global_vars option.  My implementation of
global_vars is really terrible internally, but it does work for most
cases.

Is the Lisp version of HTML::Template available somewhere?  I'm a closet
Lisp fan myself (see Inline::Guile for proof) and I'd probably enjoy
reading the code.  Lately I've been thinking about doing a Forth
version...

-sam





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to