Fluid
Fluid copied to clipboard
Missing Functionality in Fluid - Collection
Arrays
- sort
- ✅ reverse loop (implemented in for)
- map
- merge
Strings
- length
- substring rendering
Parent Rendering
I want to be able to render parts of an overwritten template.
<f:parent>
Conditions
- strict comparisons
- contains/includes
First / Last
<f:first value="{0: '1', 1: '2', 2: '3'}" />
<!-- 1 -->
<f:last value="{0: '1', 1: '2', 2: '3'}" />
<!-- 3 -->
Min / Max / Random
<f:min value="{0: '1', 1: '2', 2: '3'}" />
<!-- 1 -->
<f:max value="{0: '1', 1: '2', 2: '3'}" />
<!-- 3 -->
<f:random value="{0: '1', 1: '2', 2: '3'}" />
<!-- 1|2|3 -->
Round
- precision: decimals
- method: direction
- common
- ceil
- floor
<f:round value="15.341" precision="2" method="ceil" />
<!-- 15.35 -->
Alternative: Dedicated ViewHelpers for each.
Replace #863
Replace a string, with another one.
<f:replace value="HELLO###SPACE###FRIENDS" pattern="###SPACE###" replacement=" " />
<!-- HELLO FRIENDS -->