PHP Classes
Icontem

File: demo/index.tpl


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of David N. Q. Duong  >  XIRE  >  demo/index.tpl  
File: demo/index.tpl
Role: Auxiliary data
Content type: text/plain
Description: Demo Template
Class: XIRE
Template engine extensible with plug-in classes
 

Contents

Class file image Download
<?xml version="1.0" encoding="UTF-8"?>
<document xmlns:xirl="http://ns.forizon.com/XIRL">
    <custom><xirl:value-of variable="variable" /></custom>
    <list>
      <xirl:for id="main" each="var">
        <key><xirl:value-of variable="key" /></key>
        <value><xirl:value-of variable="value" /></value>
      </xirl:for>
    </list>
    <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:if>
    <xirl:else-if variable='true'>
      <custom>true is true</custom>
    </xirl:else-if>
    <xirl:else>
      <custom>shouldn't display</custom>
    </xirl:else>

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

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products