mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Fix switch. Update docs
This commit is contained in:
@ -1,14 +1,15 @@
|
||||
Documentation
|
||||
=============
|
||||
|
||||
**Please, help translate documentation to english or fix typos. [Read more](./helpme.md).**
|
||||
|
||||
### Fenom
|
||||
|
||||
* [Install](./install.md)
|
||||
* [Usage](./usage.md)
|
||||
* [Fenom adapters](./adapters.md)
|
||||
* [Develop](./dev/readme.md)
|
||||
* [Settings](./settings.md)
|
||||
* [Callbacks and filters](./callbacks.md)
|
||||
* [Quick start](./start.md)
|
||||
* [Usage](./start.md#install-fenom)
|
||||
* [Framework adapters](./adapters.md)
|
||||
* [For developers](./dev/readme.md)
|
||||
* [Configuration](./settings.md)
|
||||
* [Syntax](./syntax.md)
|
||||
* [Operators](./operators.md)
|
||||
|
||||
@ -18,16 +19,16 @@ Documentation
|
||||
|
||||
[Usage](./syntax.md#modifiers)
|
||||
|
||||
* [upper](./mods/upper.md) aka `up`
|
||||
* [lower](./mods/lower.md) aka `low`
|
||||
* [date_format](./mods/date_format.md)
|
||||
* [date](./mods/date.md)
|
||||
* [truncate](./mods/truncate.md)
|
||||
* [escape](./mods/escape.md) aka `e`
|
||||
* [unescape](./mods/unescape.md)
|
||||
* [strip](./mods/strip.md)
|
||||
* [length](./mods/length.md)
|
||||
* [in](./mods/in.md)
|
||||
* [upper](./mods/upper.md) aka `up` — convert to uppercase a string
|
||||
* [lower](./mods/lower.md) aka `low` — convert to lowercase a string
|
||||
* [date_format](./mods/date_format.md) - format date, timestamp via strftime() function
|
||||
* [date](./mods/date.md) - format date, timestamp via date() function
|
||||
* [truncate](./mods/truncate.md) — truncate thee string to specified length
|
||||
* [escape](./mods/escape.md) aka `e` — escape the string
|
||||
* [unescape](./mods/unescape.md) — unescape the string
|
||||
* [strip](./mods/strip.md) — remove extra whitespaces
|
||||
* [length](./mods/length.md) — calculate length of string, array, object
|
||||
* [in](./mods/in.md) — find value in string or array
|
||||
* 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`
|
||||
* or [add](./ext/mods.md) yours
|
||||
@ -38,19 +39,19 @@ Documentation
|
||||
|
||||
[Usage](./syntax.md#tags)
|
||||
|
||||
* [var](./tags/var.md)
|
||||
* [if](./tags/if.md), `elseif` and `else`
|
||||
* [foreach](./tags/foreach.md), `foreaelse`, `break` and `continue`
|
||||
* [for](./tags/for.md), `forelse`, `break` and `continue`
|
||||
* [switch](./tags/switch.md), `case`, `default`
|
||||
* [cycle](./tags/cycle.md)
|
||||
* [include](./tags/include.md), `insert`
|
||||
* [extends](./tags/extends.md), `use`, `block` and `parent`
|
||||
* [filter](./tags/filter.md)
|
||||
* [ignore](./tags/ignore.md)
|
||||
* [macro](./tags/macro.md) and `import`
|
||||
* [autoescape](./tags/autoescape.md)
|
||||
* [raw](./tags/raw.md)
|
||||
* [var](./tags/var.md) — define variable
|
||||
* [if](./tags/if.md), `elseif` and `else` — conditional statement
|
||||
* [foreach](./tags/foreach.md), `foreaelse`, `break` and `continue` — traversing items in an array or object
|
||||
* [for](./tags/for.md), `forelse`, `break` and `continue` — loop statement
|
||||
* [switch](./tags/switch.md), `case`, `default` —
|
||||
* [cycle](./tags/cycle.md) — cycles on an array of values
|
||||
* [include](./tags/include.md), `insert` — includes and evaluates the specified template
|
||||
* [extends](./tags/extends.md), `use`, `block` and `parent` — template inheritance
|
||||
* [filter](./tags/filter.md) — apply modifier on a block of template data
|
||||
* [ignore](./tags/ignore.md) — ignore Fenom syntax
|
||||
* [macro](./tags/macro.md) and `import` — template functions
|
||||
* [autoescape](./tags/autoescape.md) — escape template fragment
|
||||
* [raw](./tags/raw.md) — unescape template fragment
|
||||
* or [add](./ext/tags.md) yours
|
||||
|
||||
***
|
||||
@ -59,6 +60,5 @@ Documentation
|
||||
|
||||
* [Extensions](./ext/extensions.md)
|
||||
* [Add tags](./ext/tags.md)
|
||||
* [Add modificators](./ext/mods.md)
|
||||
* [Add template provider](./ext/provider.md)
|
||||
* [Add modifiers](./ext/mods.md)
|
||||
* [Parsing](./ext/parsing.md)
|
||||
|
Reference in New Issue
Block a user