Twig
The templating engine used by Aptuitiv is Twig, a popular templating engine/language used in a lot of other projects. It is developer friendly and allows your website's templates to include content and have custom logic.
All of the core Twig syntax, functions, tags, and tests are supported. We have extended Twig to have additional functionality for Aptuitiv.
Tags
Filters
- map
- md5
- md5_hmac
- merge
- merge_deep
- nl2array
- nl2br
- nlc2array
- number_format
- pascal
- push
- raw
- regex_filter
- regex_quote
- regex_replace
- regex_split
- replace
- reverse
- round
- rsort
- rtrim
- shuffle
- slice
- snake
- sort
- sort_by_key
Functions
Tests
Operators
- Miscellaneous operators (|, .., ~, ?:, ??)
- Comparison (==, !=, <, <=, >, >=, starts with, ends with, matches)
- Containment (in)
- Logic (and, &&, or, ||, not)
- Math (+, -, /, %, //, *, **)
- Tests (is)