Switch
switch ブロックヘルパーは、指定した式を true に維持したまま、テキストを条件付きで表示します。必要に応じて、省略可能な else タグを含めます。
1{{#Contact}}
2 {{#switch}}
3 {{.when State == "NY"}} Eastern Time
4 {{.when State == "IL"}} Central Time
5 {{.when State == "CO"}} Mountain Time
6 {{.when State == "CA"}} Pacific Time
7 {{/switch}}Contact (連絡先) には State (都道府県) の値に応じて適切なテキストが表示されます。