mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
83e1e7177e
Fenom::STRIP на Fenom::AUTO_STRIP |
||
---|---|---|
.. | ||
dev | ||
ext | ||
mods | ||
tags | ||
adapters.md | ||
articles.md | ||
benchmark.md | ||
callbacks.md | ||
configuration.md | ||
operators.md | ||
readme.md | ||
start.md | ||
syntax.md |
Documentation
Please, help translate documentation to english or fix typos. Read more.
Fenom
Modifiers
- upper aka
up
— convert to uppercase a string - lower aka
low
— convert to lowercase a string - date_format - format date, timestamp via strftime() function
- date - format date, timestamp via date() function
- truncate — truncate thee string to specified length
- escape aka
e
— escape the string - unescape — unescape the string
- strip — remove extra whitespaces
- length — calculate length of string, array, object
- in — 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 yours
Tags
- var — define variable
- if,
elseif
andelse
— conditional statement - foreach,
foreaelse
,break
andcontinue
— traversing items in an array or object - for,
forelse
,break
andcontinue
— loop statement - switch,
case
,default
— - cycle — cycles on an array of values
- include,
insert
— includes and evaluates the specified template - extends,
use
,block
andparent
— template inheritance - filter — apply modifier on a block of template data
- ignore — ignore Fenom syntax
- macro and
import
— template functions - autoescape — escape template fragment
- raw — unescape template fragment
- or add yours