slightly simplified velocity code

This commit is contained in:
Lars Kühne 2005-01-09 14:44:40 +00:00
parent dcb68a5696
commit da1cb4309e
1 changed files with 2 additions and 1 deletions

View File

@ -195,7 +195,8 @@
<ul class="sectionquicklink">
#foreach ( $candidate in $root.getChild("body").getChildren() )
#if ($candidate.getName().equals("section"))
<li><a href="#$candidate.getAttributeValue("name")">$candidate.getAttributeValue("name")</a></li>
#set ($sectionName = $candidate.getAttributeValue("name"))
<li><a href="#$sectionName">$sectionName</a></li>
#end
#end
</ul>