Use template flow control

Use template flow control style instead of curly braces