Login   Register  
PHP Classes
elePHPant
Icontem

File: app/test/tpl.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of deirathe  >  UI Template  >  app/test/tpl.php  >  Download  
File: app/test/tpl.php
Role: Example script
Content type: text/plain
Description: Sample template file
Class: UI Template
Compile HTML templates into PHP scripts
Author: By
Last change:
Date: 2009-09-29 06:23
Size: 687 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<ui:html>
<head>
    <title><ui:var select="$title"/></title>
    <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8"/>
</head>
<a href="">link</a>

<ui:define-component name="test">
    <div clas="${class}">
        <a href="${href}">${odd}
        <ui:if test="${odd}">
            click me once
            <ui:else>click me twice</ui:else>
            aaaaa
        </ui:if>
        </a>
    </div>
</ui:define-component>

start loop
<ui:loop select="$arr" name="te">
    <ui:if test="@te.odd">  
        <ui:else>
            even
        </ui:else>
        odd
    </ui:if>
    <ui:component use="test" class="@te" href="http://www.w3labs.pl" odd="@te.odd" /> 
</ui:loop>


end loop

<body>  
</body> 
</ui:html>