#NEWLINE# def register_element( self , id , elem ) : #NEWLINE# #INDENT# 'Register navigational element.\n\n        Registers the given navigational element, making it available using the\n        id ``id``.\n\n        This means that inside any template, the registered element will be\n        available as ``nav.`` *id*.\n\n        If ``elem`` is callable, any attempt to retrieve it inside the template\n        will instead result in ``elem`` being called and the result being\n        returned.\n\n        :param id: Id to register element with\n        :param elem: Element to register\n        ' #NEWLINE# self . elems [ id ] = self