AssetsFinder
Can be used to find assets according to configured base path and URL base.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
Value members
Abstract methods
The configured assets path
The configured assets path
Attributes
The configured assets prefix
The configured assets prefix
Attributes
Get the final path, unprefixed, for a given base assets directory.
Get the final path, unprefixed, for a given base assets directory.
Value parameters
- basePath
-
the location to look for the assets
- rawPath
-
the initial path of the asset
Attributes
Concrete methods
Used to obtain the final path of an asset according to assets configuration. This returns the minified path, if exists, with a digest if it exists. It is possible to use this in cases where minification and digests are used and where they are not. If no alternative file is found, the original filename is returned.
Used to obtain the final path of an asset according to assets configuration. This returns the minified path, if exists, with a digest if it exists. It is possible to use this in cases where minification and digests are used and where they are not. If no alternative file is found, the original filename is returned.
This method is like unprefixedPath, but it prepends the prefix defined in configuration.
Note: to get the path without a URL prefix, you can use this.unprefixed.path(rawPath).
Value parameters
- rawPath
-
The original path of the asset
Attributes
Create an AssetsFinder with a custom assets location (replacing the current assets base path)
Create an AssetsFinder with a custom assets location (replacing the current assets base path)
Attributes
Create an AssetsFinder with a custom URL prefix (replacing the current prefix)
Create an AssetsFinder with a custom URL prefix (replacing the current prefix)
Attributes
Concrete fields
Attributes
- Returns
-
an AssetsFinder with no URL prefix