fenom/docs/en
2014-09-15 18:06:05 +01:00
..
dev Editorial changes for dev readme 2014-09-15 18:06:05 +01:00
ext Reformat documentation 2014-08-02 00:24:14 +04:00
mods Reformat documentation 2014-08-02 00:24:14 +04:00
tags Reformat documentation 2014-08-02 00:24:14 +04:00
adapters.md Reformat documentation 2014-08-02 00:24:14 +04:00
articles.md Reformat documentation 2014-08-02 00:24:14 +04:00
benchmark.md Reformat documentation 2014-08-02 00:24:14 +04:00
callbacks.md Reformat documentation 2014-08-02 00:24:14 +04:00
configuration.md Reformat documentation 2014-08-02 00:24:14 +04:00
helpme.md Reformat documentation 2014-08-02 00:24:14 +04:00
operators.md Reformat documentation 2014-08-02 00:24:14 +04:00
readme.md Reformat documentation 2014-08-02 00:24:14 +04:00
start.md Reformat documentation 2014-08-02 00:24:14 +04:00
syntax.md Reformat documentation 2014-08-02 00:24:14 +04:00

Documentation

Please, help translate documentation to english or fix typos. Read more.

Fenom


Tags

Usage

  • var — define variable
  • if, elseif and else — conditional statement
  • foreach, foreaelse, break and continue — traversing items in an array or object
  • for, forelse, break and continue — loop statement
  • switch, case, default
  • cycle — cycles on an array of values
  • include, insert — includes and evaluates the specified template
  • extends, use, block and parent — 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
  • unset — unset a given variables
  • or add yours

Modifiers

Usage

  • 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
  • match — match string against a pattern.
  • ematch — perform a regular expression match.
  • replace — replace all occurrences of the search string with the replacement string.
  • ereplace — perform a regular expression search and replace.
  • split — split a string by string.
  • esplit — split string by a regular expression.
  • join — join array elements with a string.
  • 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

Operators


Extends