Title: event config
Thread: event config
Forum: Enhancements
Conference: ColdBox
User: xionic
Hello,
I know you want to minimize amount of config files.
But lets assume
we have a big application (100+ screens) etc.
Usually application has one or
two layouts, but the CSS and JS files that needs to be included in the layout
are different.
Today i have only couple of choices :
1. create new layout
2.
create separate view and include it based on some data that i've passed from the
controller.
What i would like to have is a plugin that will read (and cache
this information) data from the handlers.xml.cfm file :
[code]
<?xml
version="1.0" encoding="ISO-8859-1"?>
<Config>
<handler
name="ehGeneral">
<css>backend.css,backened_wide.css</css>
<js>prototype.css</js>
<event
name="main">
<css>layout_login.css,login_wide.css</css>
<js>recount.css</js>
</event>
</handler>
</Config>
[/code]
</Config>
[/code]
Then in the Layout i can access some special struct or list on which i
can iterate and include css and js files.
Of course when i dont have this file
or an entry for event or handler nothing then i am getting empty struct/list
data.
What do you think about such plugin ?