-
Improvement
-
Resolution: Won't Fix
-
Minor
-
None
-
2.9
This would be a set of generic helpers that will evaluate a conditional and either print a section, or skip it.
Example
{{#lt replyCount "3"}}
|
"Less than 3 replies"
|
{{/lt}}
|
Full set of new conditionals are:
eq, neq, lt, gt, lte, gte, and, or
The arguments for these conditionals are resolved to variables in the current context by default, but strings, numbers and booleans are recognised and passed as their correct types.
- is blocked by
-
MDL-50166 Add a way to pass arguments to mustache helpers (php and js)
-
- Closed
-