forked from lucee/lucee-docs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApplication.cfc
25 lines (17 loc) · 834 Bytes
/
Application.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
component {
this.name = "luceeDocumentationBuilder-" & Hash( GetCurrentTemplatePath() );
this.localMode = true;
variables.assetBundleVersion = 32; // must match lucee-docs\builders\html\assets\Gruntfile.js _version and server/application.cfc
this.cwd = GetDirectoryFromPath( GetCurrentTemplatePath() )
this.mappings[ "/api" ] = this.cwd & "api";
this.mappings[ "/builders" ] = this.cwd & "builders";
this.mappings[ "/docs" ] = this.cwd & "docs";
this.mappings[ "/import" ] = this.cwd & "import";
this.mappings[ "/builds" ] = this.cwd & "builds";
public boolean function onRequest( required string requestedTemplate ) output=true {
var logger = new api.build.Logger();
application.assetBundleVersion = variables.assetBundleVersion;
include template=arguments.requestedTemplate;
return true;
}
}