It is equivalent in functionality to the anchor attribute but contrarily to the latter, it inserts an anchor tag “in place” :
<tr do='each'>
<td><r:anchor/><r:zazen attr='text'/></td>
</tr>
Will produce something like this:
<tr>
<td><a class='anchor' name='node22'></a>...zazen content</td>
</tr>
You can also use RubyLess evaluated strings to build the anchor name:
<r:anchor anchor='foo#{id}'/>