PHP Classes

File: demo/index.tpl

Recommend this page to a friend!
  Classes of David N. Q. Duong  >  XIRE  >  demo/index.tpl  >  Download  
File: demo/index.tpl
Role: Auxiliary data
Content type: text/plain
Description: Demo Template
Class: XIRE
Template engine extensible with plug-in classes
Author: By
Last change: - minor changes
Date: 10 years ago
Size: 925 bytes


Class file image Download
<?xml version="1.0" encoding="UTF-8"?>
<document xmlns:xirl="">
    <custom><xirl:value-of variable="variable" /></custom>
      <xirl:for id="main" each="var">
        <key><xirl:value-of variable="key" /></key>
        <value><xirl:value-of variable="value" /></value>
    <content>loop through each item in the variable called "var", and display the key and value information provided by the programmer</content>

    <xirl:if variable='false'>
      <custom>false is true</custom>
    <xirl:else-if variable='true'>
      <custom>true is true</custom>
      <custom>shouldn't display</custom>

    <xirl:if variable='false'>
      <custom>false is true</custom>
      <custom>false is false</custom>