5.2.2.7 node="..." attribute

###
5.2.2.7 `node="..."` attribute

The `node` attribute is used in conjunction with the `treeselect`, `treefold` and `treeellipsis` (5.2.2.10) attributes. It is ignored otherwise.

When this attribute is present the node identified by evaluating the expression in the attribute value will be used when generating the `name` attribute.

The `name` (5.2.2.5) attribute is generated as follows:

    >>> import albatross
    >>> ctx = albatross.SimpleContext('.')
    >>> class Node:
    ...     def __init__(self, ino):
    ...         self.ino = ino
    ...     def albatross_alias(self):
    ...         return 'ino%d' % self.ino
    ...
    >>> ctx.locals.node = Node(81489)
    >>> albatross.Template(ctx, '<magic>', '''
    ... <al-input type="image" treeselect="n" node="node" srcicons/face.gif" border="0" whitespace>
    ... ''').to_html(ctx)
    >>> ctx.flush_content()
    <input type="image" srcicons/face.gif" border="0" name="treeselect,n,ino81489" />

Refer to the documentation for `treeselect`, `treefold` and `treeellipsis` (5.2.2.10) attributes for more information.