diff --git a/docs/callbacks.md b/docs/callbacks.md new file mode 100644 index 0000000..9faaa8f --- /dev/null +++ b/docs/callbacks.md @@ -0,0 +1,3 @@ +Callbacks +========= + diff --git a/docs/ext/parsing.md b/docs/ext/parsing.md new file mode 100644 index 0000000..a62cd0f --- /dev/null +++ b/docs/ext/parsing.md @@ -0,0 +1,3 @@ +Parsing templates +================= + diff --git a/docs/ext/provider.md b/docs/ext/provider.md new file mode 100644 index 0000000..76aba85 --- /dev/null +++ b/docs/ext/provider.md @@ -0,0 +1,3 @@ +Add template provider +===================== + diff --git a/docs/install.md b/docs/install.md new file mode 100644 index 0000000..d672a52 --- /dev/null +++ b/docs/install.md @@ -0,0 +1,19 @@ +Requirements and installation +============================= + +Для установки через composer тебуется указать в `composer.json` вашего проекта + +```json +{ + "require": { + "bzick/aspect": "0.9.*" + }, + "repositories": [ + { + "type": "git", + "url": "https://github.com/bzick/aspect.git" + }] +} +``` + +Для работы шаблонизатора потребуется расширение tokenizer. Для загрузки классов используется `psr-0` формат. \ No newline at end of file diff --git a/docs/main.md b/docs/main.md index 49754bc..6e71db6 100644 --- a/docs/main.md +++ b/docs/main.md @@ -32,7 +32,6 @@ Conversation about [tags](./tags.md) * [if](./tags/if.md), `elseif` and `else` * [foreach](./tags/foreach.md), `foreaelse`, `break` and `continue` * [for](./tags/for.md), `forelse`, `break` and `continue` -* [while](./tags/while.md), `break` and `continue` * [switch](./tags/switch.md), `case`, `default` and `break` * [cycle](./tags/cycle.md) * [include](./tags/include.md) diff --git a/docs/mods/escape.md b/docs/mods/escape.md new file mode 100644 index 0000000..81114f0 --- /dev/null +++ b/docs/mods/escape.md @@ -0,0 +1,8 @@ +Modifier |escape +================ + +Используется для кодирования / экранирования спецсимволов по алгоритмам экранирования HTML, URL'ов. По умолчанию активирован режим экранирования HTML. + +```smarty +{$html_data|escape:'HTML'} +``` \ No newline at end of file diff --git a/docs/mods/strip.md b/docs/mods/strip.md new file mode 100644 index 0000000..033f330 --- /dev/null +++ b/docs/mods/strip.md @@ -0,0 +1,3 @@ +Modifier |strip +=============== + diff --git a/docs/mods/unescape.md b/docs/mods/unescape.md new file mode 100644 index 0000000..c45d8cd --- /dev/null +++ b/docs/mods/unescape.md @@ -0,0 +1,3 @@ +Modifier |unescape +================== + diff --git a/docs/tags/capture.md b/docs/tags/capture.md new file mode 100644 index 0000000..0bd25a1 --- /dev/null +++ b/docs/tags/capture.md @@ -0,0 +1,3 @@ +Tag {capture} +============= + diff --git a/docs/tags/cycle.md b/docs/tags/cycle.md new file mode 100644 index 0000000..3c43f48 --- /dev/null +++ b/docs/tags/cycle.md @@ -0,0 +1,3 @@ +Tag {cycle} +=========== + diff --git a/docs/tags/extens.md b/docs/tags/extens.md new file mode 100644 index 0000000..5c40382 --- /dev/null +++ b/docs/tags/extens.md @@ -0,0 +1,3 @@ +Tag {extends} +============= + diff --git a/docs/tags/filter.md b/docs/tags/filter.md new file mode 100644 index 0000000..3050539 --- /dev/null +++ b/docs/tags/filter.md @@ -0,0 +1,10 @@ +Tags {filter} +============= + +Позволяет применить модификаторы на фрагмент шаблона + +```smarty +{filter|strip_tags|truncate:80} +Remove all HTML tags and truncate text to 80 symbols +{/filter} +``` \ No newline at end of file diff --git a/docs/tags/switch.md b/docs/tags/switch.md new file mode 100644 index 0000000..6cf9f40 --- /dev/null +++ b/docs/tags/switch.md @@ -0,0 +1,3 @@ +Tag {switch} +============ +