Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Commit

Permalink
Fixed templates
Browse files Browse the repository at this point in the history
  • Loading branch information
josephspurrier committed May 2, 2014
1 parent 7906d23 commit 58ffb4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 45 deletions.
4 changes: 2 additions & 2 deletions tests/SurfStack/Templating/Template_Engine_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private function render()
ob_end_clean();
}

public function testCaching()
public function testCompiling()
{
$this->view->clearCompile();

Expand All @@ -68,7 +68,7 @@ public function testCaching()

$this->assertTrue($this->view->wasCompileCurrent());
}

public function testClear()
{
$items = array(
Expand Down
43 changes: 0 additions & 43 deletions tests/SurfStack/Templating/template/template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,49 +43,6 @@

<br />

/* This is a comment */

<? if ($items): ?>
<? foreach ($items as $item): ?>
* <?= $item ?>
<? endforeach; ?>
<? else: ?>
No item has been found.
<? endif; ?>

<? for ($i = 0; $i < 10; $i++): ?>
* <?= $i ?>
<? endfor; ?>

<? $i = 0; ?>
<? while ($i <= 10): ?>
<?= $i; ?>
<? $i++; ?>
<? endwhile; ?>

<? $i = 0; ?>

<? $i++; ?>

<?= htmlentities($i, ENT_QUOTES, "UTF-8"); ?>

<?php switch ($i):
case 0: ?>
<?= "i equals 0"; ?>
<? break; ?>
<? case 1: ?>
<?= "i equals 1"; ?>
<? break; ?>
<? case 2: ?>
<?= "i equals 2"; ?>
<? break; ?>
<? endswitch; ?>

<? declare(ticks=1): ?>
<? enddeclare; ?>

<br />

{BoldBlock name='Joe' items=$items} Hello: {/BoldBlock} it is {TimeSlice}

{* This is a comment *}
Expand Down

0 comments on commit 58ffb4c

Please sign in to comment.