On Tue, 27 Nov 2001, Tatsuhiko Miyagawa <[EMAIL PROTECTED]> wrote,

> On Mon, 26 Nov 2001 17:45:20 -0500 (EST)
> Sam Tregar <[EMAIL PROTECTED]> wrote:
> > > How do we pass parameters to component? Like this?
> > >
> > >   <TMPL_COMP><TMPL_VAR name="foo"></TMPL_COMP>
> > 
> > I agree - this is a weakness in my original spec.  Maybe something like:
> > 
> >    <tmpl_comp name="Some::Component" args="foo,bar">
> >      some text args
> >    </tmpl_comp>
> 
> Got it. "some text args" is a literal text, while "foo,bar" is
> param's key string. right?

How about,

    <tmpl_comp name="Some::Component" arg1=value1 arg2=value2 argn=valuen>

There's only one mandatory attribute, that's "name".  All other attributes
will be passed in to Some::Component.


san
-- 
Trabas - http://www.trabas.com



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

Reply via email to