We want to insert some conditional dynamic content on our AMP pages. We are using mustache to add the dynamic content.
Mustache is logic less (with support for basic if else) i.e. mentioned here. They have also suggested to use Handlebar JS for such complex conditional logic but looks like we don't have any AMP alternative here.
One way to solve is - send simple boolean from server to avoid all AND/OR conditions on the client side but we will have to send too many such variables if we go by this approach. How should we handle such complex conditions in AMP?