How to do conditional rendering in templates?

Hi, I wanted to create a template that renders one way if a certain property is set, and another if it is not. Is there a way to do this with the new templating system? From my understanding, it only supports Space Lua expressions within ${}, but not conditional blocks or similar. Is there any idiomatic way to get around this?

Thank you in advance!

lua supports ternaries in the form of <condition> and <what to render if true> else <what to render if false>

Almost: <condition> and <if true> or <if false>

I see. It unfortunately seems it will be a bit unwieldy if you need to embed the markup in Lua with string concatenation, especially if more complex.