Location: PHPKode > projects > PEAR::HTML_Template_Xipe - SimpleTemplate > examples/simple/index.tpl
        <title>Example - SimpleTemplate</title>
        <link href="../style.css" type="text/css" rel="StyleSheet">


<a href="{$viewClassCodeUrl}">class SimpleTemplate - source code</a><br><br>

<script type="text/javascript" language="JavaScript">

    *   the alert text if you click "really"
    *   @var    string  s
    var s ="May be _one_disadvantage_ is that you need to escape \n"+
        "'\\\{'  for getting a  '\{'\n"+
        "'\\\}'   for getting a  '\}'\n"+
        "if those characters are your delimiters\n\n"+
        "i didnt mind it yet...\n";

    *   show an alert text as given in 's'
    *   @version    01/12/10
    function really()


<table border="1">
        <td valign="top">
            If you like :

            {foreach($advantages as $aAdvantage)}

        <td valign="top">
            And you &nbsp; D O N ' T &nbsp; like :

            {foreach($dontLike as $aDontLike)}
then you should try SimpleTemplate.<br><br>


{foreach($disadvantages as $aDisadvantage)}
    no disadvantages registered yet (<a href="javascript:really()">really?</a>)
    , but feel free and mail
    <a href="mailto:hide@address.com">me</a><br>
    <a href="{$viewSourceCodeUrl}">but look at the code first</a><br>
    <a href="{$viewTemplateCodeUrl}">and the template</a><br>
    <a href="{$viewCompiledTemplate}">and the complied template</a><br>
    <a href="{$viewTemplateLog}">template log file</a><br>

Return current item: PEAR::HTML_Template_Xipe - SimpleTemplate