Hello,
I started building a hierarchy of modules and autohandlers, and
I am now
facing the following design issue:
- A number of the components rely on Javascript libs to be
loaded
through a script tag in the document's head.
- Every page invokes a hierarchy of components that is
determined only
at runtime (since it depends on the value of params, and other
factors).
- How can the component that builds the document
"head" (autohandler in
my case) inspect the list of components traversed, to be able to
build
the list of JS libs/CSS that are used by these components (given
that
the list or required libs can overlap between components)?
Concrete example:
autohandler
|
|--- page1.mas
|--- page2.mas
|
|--- comps
|
|--- grid.mas
|--- list.mas
page1.mas and page2.mas might use comps/grid.mas and/or
comps/list.mas.
All components have JS required libs. How can the autohandler
determine
the list of JS libs to add to the head tag of the generated HTML
doc ?
Thanks in advance for your ideas/pointers.
-Olivier
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users