-
-
Notifications
You must be signed in to change notification settings - Fork 172
/
Copy pathModuleConfig.cfc
51 lines (44 loc) · 1.16 KB
/
ModuleConfig.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* Module Config
*/
component {
// Module Properties
this.title = "HTML Helper";
// Model Namespace
this.modelNamespace = "HTMLHelper";
// CF Mapping
this.cfmapping = "HTMLHelper";
// Auto-map models
this.autoMapModels = true;
// Helpers
this.applicationHelper = [ "helpers/Mixins.cfm" ];
function configure(){
// module settings - stored in modules.name.settings
settings = {
// The base path of JS assets
js_path : "/includes/js/",
// The base path of CSS assets
css_path : "/includes/css/",
// Encode values on all dynamically generated tags in the HTML Helper
encodeValues : false
};
// Map HTML Helper to provide continuity from previous ColdBox apps
binder.map( "HTMLHelper@coldbox" ).to( "#moduleMapping#.models.HTMLHelper" );
}
/**
* Fired when the module is registered and activated.
*/
function onLoad(){
}
/**
* Fired when the module is unregistered and unloaded
*/
function onUnload(){
}
/**
* Listen when the renderer is ready
*/
function afterRendererInit( event, data ){
arguments.data.variables.html = variables.wireBox.getInstance( "HTMLHelper@HTMLHelper" );
}
}