Update doc

This commit is contained in:
bzick 2013-02-20 22:32:14 +04:00
parent 9ed8e987b9
commit f4bc88a97d
3 changed files with 6 additions and 2 deletions

View File

@ -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": [
{

View File

@ -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**

View File

@ -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());
}