加藤です.
お疲れ様です.
小林さんがご指摘のように,Conditionであれば以下のようなやりかたでレイアウトを変更できます.
layout.html
<div id="isAuthed">
<te:include te:src="headerAfterAuth.html"/>
</div>
<div id="isNotAuthed>
<te:include te:src="headerAfterAuth.html"/>
</div>
LayoutPage
public boolean isAuthed(){
return currentUserDto.isAuthed();
}
ご参考までに.