Y
ylima
Guest
I have the following piece o code:
For styling reasons, I'd like that the first and the last "<a>" tags generated by the "<g:link>" tag have a class="first" and a class="last" attribute respectively.
What would be the most recomended way to do that?
Thanks
Code:
<ul><g:each in="${typeList}" var="type" status="i">
<li>
<g:link controller="someController" action="someAction" id="${type.id}">
${type.name}
</g:link>
</li>
</g:each></ul>
For styling reasons, I'd like that the first and the last "<a>" tags generated by the "<g:link>" tag have a class="first" and a class="last" attribute respectively.
What would be the most recomended way to do that?
Thanks