Conditional Rendering
Control Flow
Etcher supports a number of Control flow behaviours, including if
and loop
.
<!-- button.xtml --> {@if {{type}} === 'a'} <a class="primary" href="{{href}}"> {{text}} </a> {:else} <button class="primary"> {{text}} </button> {/if}