Better Antlers Documentation - Variables in Ternary Conditions

Hi there,

is there a more extensive documentation available for the antlers template engine? Google isn't showing anything and the statamic docs are a skimpy with examples etc.

Right now I'm struggeling to print variables inside shorthand conditions.

{{ columns == 1 ? "w-full" : "w-1/".columns }}

This isn't printing anything, probably due to a syntax error, but I can't find anything on how this can be achieved. Any pointers?

Thanks

>>>>>>> Unanswered <<<<<<<
6 Replies
2 Followers