Doc code causes syntax error

Issue #35 resolved
Alex Robbins
created an issue

The docs are for this class:

In the code sample it says to make a menu item this way:



self.children.append( MenuItem( title='Multi level menu item', children=[ MenuItem('Child 1'), MenuItem('Child 2'), ] ), )


However, menu items have this method signature: def init(self, * kwargs): The * kwargs doesn't like the MenuItem('Child 1'). It works fine if I pass it as title='Child 1'. We need to either use keyword arguments instead of just * *kwargs, or update the docs.