More expressive template for generated app code