{! Most of the following code is from https://quarkus.io/guides/qute-reference !} {! Example html !}
{#if sample.valid} {sample.data} {myObject.myValue} {#else} Invalid sample found. {/if}
{/for} First name: First name: {! Expression !} simple properties: {foo}, {item.name} virtual methods: {item.get(name)}, {name ?: 'John'} with namespace: {inject:colors}. {! Section tag !} {#if foo}{foo.name}{/if}, the name in the closing tag is optional: {#if active}ACTIVE!{/}, can be empty: {#myTag image=true /}, may declare nested section blocks: {#if item.valid} Valid. {#else} Invalid. {/if} and decide which block to render. {! 2.1.1.1. Current Context !} {#each items} {count}. {it.name} {/each} {! Another form of iteration... !} {#for item in items} {count}. {item.name} {/for} {item.name}