Added an optional per-asset folder to the Asset protocol and the AssetExtension extension in the Infrastructure package.
This commit is contained in:
@@ -40,8 +40,8 @@ public extension AssetExtension {
|
||||
}
|
||||
}
|
||||
|
||||
/// The sub-directory within the static root that holds files with this extension, if any.
|
||||
var subdirectory: String? {
|
||||
/// The folder within the static root that holds files with this extension, if any.
|
||||
var folder: String? {
|
||||
switch self {
|
||||
case .css: "css"
|
||||
case .js: "js"
|
||||
|
||||
Reference in New Issue
Block a user