Ah! I think I understand better, now.

Your example seems to suggest that your component, "parse this", inserted
from your method call is incorporating HTML (or HTML::Template instructions)
within your CGI. Doesn't this break the separation of program code and HTML?

Chris
--
Chris Davies, Manheim Online
Tel. 0113 393-2004  Fax. 0870 444-0482.  Mobile 07778 199069


-----Original Message-----
From: Francesco Martelli - HalNet [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 10:08 AM
To: [EMAIL PROTECTED]
Cc: Chris Davies
Subject: Re: [htmltmpl] <tmpl_skip>


yes, you've misunderstood me (maybe cause my english).

i add an example of what i want <tmpl_skip> tag to do:

TEMPLATE BEFORE PARSING:

bla bla bla
<tmpl_var message1>
bla bla bla
<tmpl_skip>
    <tmpl_var message2>
    <tmpl_loop results>
        <tmpl_var site> - <tmpl_var url>
    </tmpl_loop>
</tmpl_skip>
bla bla bla

METHOD CALL:

$tmpl->param(
    message1 =>'parse this',
    message2 =>'dont parse this',   # useless
);

TEMPLATE AFTER PARSING:

bla bla bla
parse this
bla bla bla
<tmpl_var message2>
<tmpl_loop results>
    <tmpl_var site> - <tmpl_var url>
</tmpl_loop>
bla bla bla

END

Now i can use it as a template (in previous message i explain why i need
this).

bye


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


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

Reply via email to