trait AssetsFinder extends AnyRef
Can be used to find assets according to configured base path and URL base.
- Self Type
- AssetsFinder
- Source
- Assets.scala
- Alphabetic
- By Inheritance
- AssetsFinder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def assetsBasePath: String
The configured assets path
- abstract def assetsUrlPrefix: String
The configured assets prefix
- abstract def findAssetPath(basePath: String, rawPath: String): String
Get the final path, unprefixed, for a given base assets directory.
Get the final path, unprefixed, for a given base assets directory.
- basePath
the location to look for the assets
- rawPath
the initial path of the asset
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def path(rawPath: String): String
Used to obtain the final path of an asset according to assets configuration.
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)
.- rawPath
The original path of the asset
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- lazy val unprefixed: AssetsFinder
- returns
an AssetsFinder with no URL prefix
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withAssetsPath(newPath: String): AssetsFinder
Create an AssetsFinder with a custom assets location (replacing the current assets base path)
- def withUrlPrefix(newPrefix: String): AssetsFinder
Create an AssetsFinder with a custom URL prefix (replacing the current prefix)
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)