PHPTML

A class to aid in creating HTML

Copyright (C) 2003 Travis Pettijohn
Released under the LGPL.

Home Page

Author

Download

Project Summary
Welcome to the PHPTML Home page! The goal of this class is to reduce the time it takes to output a simple webpage. For example, the following php code:
include("phptml.inc");
$p = new PHPTML();
$p->SetStyle("style.css");
echo $p->Page("Test page",
    $p->Table($p->TR("cell one")
        . $p->TR("another row with", "two cells!")
        . $p->TR("this guy takes","a", "third argument!"), 1));
generates the following HTML:
<html>
 <head>
  <title>
   Test page
  </title>
  <link href="style.css" rel="stylesheet" type="text/css" />
 </head>
 <body>
<table border="1">
<tr><td>cell one</td></tr>
<tr><td>another row with</td><td>two cells!</td></tr>
<tr><td>this guy takes</td><td>a</td><td>third argument!</td></tr>
</table>
 </body>
</html>

SourceForge.net Logo