From b52413dbb4d8333d5fe2a351780e20b04c4525a2 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Tue, 14 Apr 2015 22:37:15 +0200 Subject: Trim whitespace --- example/index.php | 4 ++-- example/templates/src/articles.html | 8 ++++---- example/templates/src/custom_tags.tpl | 2 +- example/templates/src/master.html | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'example') diff --git a/example/index.php b/example/index.php index a0aa03c..3c7c5ba 100644 --- a/example/index.php +++ b/example/index.php @@ -34,10 +34,10 @@ $ste->register_tag("repeat", $output = ""; if(!is_numeric($params["n"])) throw new ste\RuntimeError("Sorry, but parameter n must be a number..."); - + for($i = 0; $i < $params["n"]; ++$i) $output .= $sub($ste); - + return $output; } ); diff --git a/example/templates/src/articles.html b/example/templates/src/articles.html index 36f59c4..38cab10 100644 --- a/example/templates/src/articles.html +++ b/example/templates/src/articles.html @@ -29,7 +29,7 @@

There are more articles.

- +

Some more useless demo stuff...

Counting from 10 to 0...

but take only the even ones and multiply by 5...

@@ -41,15 +41,15 @@ - +

Repeat some text...

Bla

- +

Get a variable's content dynamically

- +

We will call ste:repeat with a non-numerical value for n here to see the handling of a RuntimeError

Bla

diff --git a/example/templates/src/custom_tags.tpl b/example/templates/src/custom_tags.tpl index 7e821c5..6ed0596 100644 --- a/example/templates/src/custom_tags.tpl +++ b/example/templates/src/custom_tags.tpl @@ -7,7 +7,7 @@ - + $_tag_parameters[counter] diff --git a/example/templates/src/master.html b/example/templates/src/master.html index fe6b1e6..710b9d4 100644 --- a/example/templates/src/master.html +++ b/example/templates/src/master.html @@ -13,14 +13,14 @@ .offline { color: #555; font-style: italic; - + } - +

example

- +
Default content. -- cgit v1.2.3-70-g09d2