anchor

add an anchor to this part of the page

The attribute can be either 'true' or a string evaluated as a RubyLess.

see anchor, zena 1.0

If you set the anchor attribute to true the anchor will be named after the current node:

<r:title anchor='true'/> --> <a class='anchor' name='node22'></a>article title

This is equivalent to:

<r:title anchor='node#{id}'/>

You can also build more complex anchors:

<li do='each' anchor='#{parent.id}_#{id}'><r:text/></li>

Finally, note that the anchor will have the anchor class and will be inserted before the tag:

<a class='anchor' name='foo_bar'></a><li>blah blah blah</li>

You must therefore be careful not to use anchor on “tr” or “td” elements. In this case you should use anchor tag:

<td><r:anchor/></td>

If you need to show the full enclosing “td”, you will need to use CSS to move the anchor above:

.anchor { display:block; position:relative; top:-2em;  }