ecTemplate

From: Date: Mon, 24 Sep 2001 21:52:03 +0000
Subject: ecTemplate
Groups: php.general 
Request: Send a blank email to php-general+get-68610@lists.php.net to get a copy of this message
hi, I would like te announce a really good html template parser class. How it works. Normally your HTML and PHP codes are mixed and therefor you are not able to use tools like dreamweaver anymore. Well with ecTemplate you can define to types of tags that you can put inside your html file. for example variable style {aName} loop style <!-- #LOOP-START:rules --> <!-- #LOOP-END:rules --> so your html file can look like this <HTML> <HEAD> <TITLE>{title}</TITLE> </HEAD> <BODY> <TABLE align="center" border="1"> <!-- #LOOP-START:row --> <tr><td>{var_1}</td><td>{var_2}</td></tr> <!-- #LOOP-END:row --> </TABLE> </BODY> </HTML> the ecTemplate class is going to parse the html file and replaces the code special tags with te result of your php code. Just try it out and you will see it works really handy look here for a live excample http://www.millipede.nl/ectemplate greetings Jeroen Olthof

« previous php.general (#68610) next »