From f4bc88a97d0044c457c9f69f59afe090c4f973dc Mon Sep 17 00:00:00 2001 From: bzick Date: Wed, 20 Feb 2013 22:32:14 +0400 Subject: [PATCH] Update doc --- composer.json | 2 +- docs/main.md | 3 +++ src/Aspect/Misc.php | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index b54a67e..4adeb06 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "type": "library", "description": "Aspect - fast template engine for PHP", "homepage": "https://github.com/bzick/aspect", - "keywords": ["aspect", "templater", "templating", "template"], + "keywords": ["aspect", "template", "templating"], "license": "MIT", "authors": [ { diff --git a/docs/main.md b/docs/main.md index 12f1b8f..4239589 100644 --- a/docs/main.md +++ b/docs/main.md @@ -22,6 +22,7 @@ Conversation about [modifiers](./syntax.md#modifiers) * [escape](./mods/escape.md) aka `e`, `url` * [unescape](./mods/unescape.md) * [strip](./mods/strip.md) +* [length](./mods/lenght.md) * allowed functions: `json_encode`, `json_decode`, `count`, `is_string`, `is_array`, `is_numeric`, `is_int`, `is_object`, `strtotime`, `gettype`, `is_double`, `ip2long`, `long2ip`, `strip_tags`, `nl2br` @@ -40,6 +41,8 @@ Conversation about [tags](./syntax.md#tags) * [capture](./tags/capture.md) * [filter](./tags/filter.md) * [ignore](./tags/ignore.md) +* [macros](./tags/macros.md) +* [import](./tags/import.md) **Extends** diff --git a/src/Aspect/Misc.php b/src/Aspect/Misc.php index 6c4b1f2..44c55fc 100644 --- a/src/Aspect/Misc.php +++ b/src/Aspect/Misc.php @@ -43,8 +43,9 @@ class Misc { foreach($iterator as $file) { /* @var \splFileInfo $file*/ if($file->isFile()) { - if(strpos($file->getBasename(), ",") !== 0) + if(strpos($file->getBasename(), ",") !== 0) { unlink($file->getRealPath()); + } } elseif($file->isDir()) { rmdir($file->getRealPath()); }