A Tapestry component template file is an HTML file that defines the layout of a Web view component.

The name of the Tapestry component template file must match the name of the component specification JWC file.

The following example shows a component template file that displays the user's username and adds a Logout link to a Web view page.

<strong>
<vco jwcid="@Insert" value="ognl:page.user.displayName" />
</strong>
<vco jwcid="@Insert" value="ognl:' (' + page.getUsername() + ')'" />
&nbsp;|&nbsp;
<a jwcid="@Any" href="ognl:page.webviewUrl + '?logout'">Logout</a>