Packages

c

org.webjars.play

WebJarsUtil

class WebJarsUtil extends AnyRef

WebJars Util

Config:

webjars.filter-expression can be used to declare a regex for the files that should be looked for when searching within WebJars. By default all files are searched for.

webjars.cdn-url overrides the default CDN url (https://cdn.jsdelivr.net/webjars)

webjars.use-cdn toggles the CDN

Annotations
@Singleton()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WebJarsUtil
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WebJarsUtil(configuration: Configuration, environment: Environment)
    Annotations
    @Inject()

Type Members

  1. class WebJarAsset extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. lazy val cdnUrl: String
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def fullPath(webjar: String, path: String): WebJarAsset

    Get the full path to a file in a WebJar without validating that the file actually exists

    Get the full path to a file in a WebJar without validating that the file actually exists

    webjar

    the WebJar artifactId

    path

    the full path to a file in the WebJar

    returns

    the located WebJarAsset

    Example:
    1. Calling fullPath("react", "react.js") will return a WebJarAsset because react.js exists at the root of the WebJar

  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def locate(webJar: String, path: String): WebJarAsset

    Locate a file in a WebJar

    Locate a file in a WebJar

    webJar

    the WebJar artifactId

    path

    the file or partial path to find

    returns

    the located WebJarAsset

  15. def locate(file: String): WebJarAsset

    Locate a file in a WebJar

    Locate a file in a WebJar

    file

    the file or partial path to find

    returns

    the located WebJarAsset

    Example:
    1. Passing in jquery.min.js will return a WebJarAsset, assuming the jquery WebJar version 1.8.2 is on the classpath

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def requireJs(mainUrl: Call): Html

    Generates the RequireJS config and main script tags

    Generates the RequireJS config and main script tags

    mainUrl

    The reverse route of the main app

    returns

    The RequireJS config and main script tags

  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. lazy val useCdn: Boolean
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  26. lazy val webJarFilterExpr: String

Inherited from AnyRef

Inherited from Any

Ungrouped