XiTemplate Home Page XiTemplate
[ class tree: XiTemplate ] [ index: XiTemplate ] [ all elements ]

HTML template used in this example

  1. <!-- BEGIN: main -->
  2.  
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  4.  
  5. <html>
  6. <head>
  7. <title>XiTemplate Manual - rparse()</title>
  8. </head>
  9.  
  10. <body>
  11.  
  12. <h1>XiTemplate</h1>
  13. <p>Hi. Welcome to {NAME}!</p>
  14.  
  15. <!-- BEGIN: subBlock1 -->
  16. <p>This block is: {SUB1}</p>
  17. <!-- END: subBlock1 -->
  18.  
  19. <!-- BEGIN: subBlock2 -->
  20. <p>This block is: {SUB2}</p>
  21. <!-- END: subBlock2 -->
  22.  
  23. <!-- BEGIN: subBlock3 -->
  24. <p>This block is: {SUB3}</p>
  25. <!-- END: subBlock3 -->
  26.  
  27. <p>Notice how {SUB3} gets parsed twice since it was explicitly parsed by parse() and then
  28. parsed again by rparse(). This is not a bug since calling rparse will recursively parse
  29. all blocks contained within the parent block. It might be a feature, though. :-)</p>
  30.  
  31. </body>
  32. </html>
  33.  
  34. <!-- END: main -->

Documentation generated on Fri, 20 Aug 2004 10:57:45 -0500 by phpDocumentor 1.3.0RC3