Extend SiteMap to better support modules
From our email discussion:
"Basically, our idea is to have a convention that the module has a singleton object with the same name as the module and then there would be an init method that the module user would call from within Boot.scala to do whatever initialization is necessary. Unfortunately, as things currently stand there's a need for a separate method to provide a List[Menu], just as the MetaMegaProtoUser trait currently does with the menus method, so that the module user can wire in any provided Menus into their app.
"As I understand it, you have a solution in mind that would make things simpler to hook modules into the app's SiteMap, perhaps something to do with passing in the existing SiteMap and returned a new one? I'm afraid I didn't really get what you had specifically in mind but please let me know what you need from me."
"Basically, our idea is to have a convention that the module has a singleton object with the same name as the module and then there would be an init method that the module user would call from within Boot.scala to do whatever initialization is necessary. Unfortunately, as things currently stand there's a need for a separate method to provide a List[Menu], just as the MetaMegaProtoUser trait currently does with the menus method, so that the module user can wire in any provided Menus into their app.
"As I understand it, you have a solution in mind that would make things simpler to hook modules into the app's SiteMap, perhaps something to do with passing in the existing SiteMap and returned a new one? I'm afraid I didn't really get what you had specifically in mind but please let me know what you need from me."
Leave a comment
on 2010-10-23 22:19 *
By Peter Robinett
The mailing list thread: http://groups.google.com/group/liftweb/browse_thread/thread/19f56a83b8479980