return true if the current node is an ancestor of the argument |
|
| see ancestors, zena 1.0 | |
This is a Node method accessible with RubyLess:
<ul do='menus from root'> <li do='each' on_if='is_ancestor?(main)' do='link'/> </ul>
The example above produces a menu where the “li” tag has class “on” if the shown menu item is an ancestor of the main node (the one in the url).