Mustache clearly prohibits such things. This logic, and you are trying to put it in your template :)
An appropriate way would be to move the logic into a ViewModel or View object:
<?php class MyView { public $a; public $b; public function aOrB() { return $this->a || $this->b; } }
But if it were me, I would call this function something like hasFoo or showBar , so it has a little meaning.
Because you are processing "should I show this block?" logic in View or ViewModel, you will return to the normal section in your template:
{{
source share