i imagine FreeMaker

【FreeMaker】ユーザーステータスに応じて呼び出されるコンテンツの順番を変更する( Change order of contents to be called with user status)

【FreeMaker】ユーザーステータスに応じて呼び出されるコンテンツの順番を変更する( Change order of contents to be called with user status)

i imagine FreeMaker
i imagine FreeMaker

プロジェクトで一枚のftlファイルにユーザーの状態に応じてコンテンツの順番が入れ替わるという仕様をswitch文でうまくやろうということになり、下記のようになりました。