On Sat, 1 Dec 2001 23:12:58 -0500 (EST)
Sam Tregar <[EMAIL PROTECTED]> wrote:

> Hey - this is pretty neat!  It uses HTML::Template combined with XPath
> queries to transform.  If we could combine this with HTML::Template::Expr
> I don't think I'd ever want to hear XSL again...  Oh, wait, I already
> don't!

XMLish side of XPath doesn't appeal to me :), but its charming
point is that it has "(hierarchical) namespace" for the variables. 

The following psuedo-code is what I want:

  # script:
  # $foo is an object which implements param() method
  $tmpl->associate_namespace(foo => $foo);

  # template:
  # this will corrupt to $foo->param('bar')
  <TMPL_VAR name="bar" namespace="foo">
  # or XPathish
  <TMPL_VAR name="foo/bar">


Yeah, we can do it with filter, or using dummy one loop ...

  # $tmpl->param(foo => [ map { } ... ]):
  <TMPL_LOOP name="foo"><TMPL_VAR name="bar"></TMPL_LOOP>

> I think this points to the problem that Tatsuhiko brought up earlier -
> there are multiple filter-based extensions to HTML::Template floating
> around.  They're all pretty neat but none of them work together.  This
> needs solving, I think, although nothing is jumping out at me.

Exactly!

--
Tatsuhiko Miyagawa <[EMAIL PROTECTED]>


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

Reply via email to