Hello!

Do you know Links 2.0 by Gossamer-Threads ?

Well, this perl script uses a template engine(annexed file) based in a
modification of CGI::FastTemplate that give a useful flexibility for
webdesigners. The facilities are that webdesigners can use logical functions
in his tags on templates (actually if, if not, >, <, = =, != ) eg:

{IF IMAGE}
  <p>
  <img src="{IMAGE}">
  <br>
  <br>
{ENDIF}

Thus all code between the if statement will be printed if $image is set else
nothing will be.


This is very useful when you have a list of elements that someone have some
elements and others not, eg:

1) The template without this enhancement:

<p>
<img src="{IMAGE}"><br><br>
{NAME}<br>
{EMAIL}

Thus if the current user doesn't have a image the <p>, <img> and <br><br>
tags will be printed in any way.


2) The template with  the enhancement:

{IF IMAGE}
<p>
<img src="{IMAGE}">
<br>
<br>
{ENDIF}
{NAME}<br>
{EMAIL}

Thus if the current user doesn't have a image the <p>, <img> and <br><br>
tags will not be printed in any way, maintaining the desired design. THIS IS
GREAT !!!


Note)

Also, would be excellent if we have the following options on tags:

1) include a file not parsed (straight include of HTML) (allows php code)
2) include a file parsed (parse the include file for tags) (allows php code)


Is possible to convert the Template.pm (see annexed file) by Gossamer
to php class ???

Kindest Regards,

Marco Aurélio
Brazil
[EMAIL PROTECTED]

BTW(a), I tried dozen based FastTemplates engines but anyone
have the functions of Template.pm.

 BTW(b):
1) Can you understand me ???  (sorry for my poor english.)
2) If have any cost, please tell me.
3) Please answer me, I really need it.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to