This is a basic menu template. It could actually be simpler, but I decided to take advantages of blocks to increase readability.
So let's start with an array of hashes, which will describe the menu items:
items = [
{description = "Item 1", uri = "page1.html"}
{description = "Item 2", uri = "page2.html"}
{description = "Item 3", uri = "page3.html"}
]
then define a simple block for hyperlinks:
[% BLOCK link %]
<a href="[% uri %]">[% description %]</a>
[% END %]
and finally, the menu template itself:
<ul class="menu">
[% FOREACH item = items %]
<li>[% PROCESS link description = item.description uri = item.uri %]</li>
[% END %]
</ul>
The menu is rendered as an unordered list... all the styling work is done by the style sheet.