fenom/docs
2014-06-18 17:21:29 +04:00
..
dev Update dev docs 2014-06-06 10:27:06 +04:00
ext Update docs 2014-06-18 17:21:29 +04:00
mods Update in.md 2014-01-31 10:43:18 +02:00
tags 2.0.1 2014-06-09 23:40:59 +04:00
adapters.md Fix switch. Update docs 2014-05-14 17:07:48 +04:00
articles.md Update articles.md 2013-07-07 01:46:09 +04:00
benchmark.md Update benchmark.md 2013-07-22 18:54:41 +04:00
callbacks.md Add docs (drafts) 2013-02-13 18:51:53 +04:00
configuration.md Update docs 2014-06-18 17:21:29 +04:00
helpme.md 2.0.1 2014-06-09 23:40:59 +04:00
operators.md Update docs 2014-06-18 17:21:29 +04:00
readme.md Update docs 2014-06-18 17:21:29 +04:00
start.md Update start.md 2014-05-08 13:08:43 +04:00
syntax.md Update syntax.md 2014-05-19 10:13:29 +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
  • 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
  • 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