JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
rewrote template documentation
[wfpl.git] / test / tem_test.php.html
index 385cecb..37ebdea 100644 (file)
@@ -15,7 +15,7 @@ special things: sub-templates and template tags. -->
   sub-template. It marks a section of template which the php can decide how
   many times to display (including none.) -->
   
-  <!--~login start~-->
+  <!--~login {~-->
   <h3>Please Log In Below</h3>
 
   <form method="get" action="tem_test.php">
@@ -32,7 +32,7 @@ special things: sub-templates and template tags. -->
                putting it in a text file or e-mail then leave the encoding off and
                just put ~user~. -->
 
-        <td><input type="text" name="user" value="~user.attr~"></td>
+        <td><input type="text" name="user" value="~user attr~"></td>
       </tr>
 
       <tr>
@@ -40,7 +40,7 @@ special things: sub-templates and template tags. -->
 
         <!-- there's another template tag named pass -->
 
-        <td><input type="password" name="pass" value="~pass.attr~"></td>
+        <td><input type="password" name="pass" value="~pass attr~"></td>
       </tr>
 
       <tr>
@@ -51,14 +51,14 @@ special things: sub-templates and template tags. -->
 
   <!-- and here's the mark for the end of the login sub-template. -->
 
-  <!--~end~-->
+  <!--~}~-->
 
 
   <!-- Now for a more complex example of sub-templates. This whole table is in
   a sub-template so php can decide to display the whole bit or not. First the
   marker for the begining of the sub-template -->
 
-  <!--~foobar_table start~-->
+  <!--~foobar_table {~-->
   <h3>All your foobar:</h3>
 
   <table summary="">
@@ -72,16 +72,16 @@ special things: sub-templates and template tags. -->
        in this table, so we make a template with just one row, and mark that row
        as a sub-template named foobar_row -->
     
-    <!--~foobar_row start~-->
+    <!--~foobar_row {~-->
     <tr>
          <!-- sorry that the following tag looks a bit like a filename. It isn't.
          It's simply asking PHP for a value called "foo" encoded as html -->
-      <td>~foo.html~</td>
+      <td>~foo html~</td>
 
-      <td><input value="~bar.attr~"></td>
+      <td><input value="~bar attr~"></td>
     </tr>
     <!-- Here's the end of foobar_row -->
-    <!--~end~-->
+    <!--~}~-->
 
     <tr>
       <td></td>
@@ -91,6 +91,6 @@ special things: sub-templates and template tags. -->
 
   </table>
   <!-- and the end of foobar_table -->
-  <!--~end~-->
+  <!--~}~-->
 </body>
 </html>