forked from lucee/lucee-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplication.cfc
More file actions
23 lines (16 loc) · 819 Bytes
/
Application.cfc
File metadata and controls
23 lines (16 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
component {
this.name = "luceeDocumentationBuilder-" & Hash( GetCurrentTemplatePath() );
variables.assetBundleVersion = 37; // must match lucee-docs\builders\html\assets\Gruntfile.js _version
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(opts:{textOnly: true, console: true});
application.assetBundleVersion = variables.assetBundleVersion;
include template=arguments.requestedTemplate;
return true;
}
}