Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package webjars
    Definition Classes
    org
  • package play
    Definition Classes
    webjars
  • class WebJarsUtil extends Logging

    WebJars Util

    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

    Definition Classes
    play
    Annotations
    @Singleton()
  • WebJarAsset

class WebJarAsset extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WebJarAsset
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WebJarAsset(path: Try[String])

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. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. def css(params: Map[String, String] = Map.empty): Html

    A CSS link tag

    A CSS link tag

    returns

    An Html with the tag or an error / empty string (depending on mode)

  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. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def groupId(path: String): Try[String]

    Get the groupId from a path

    Get the groupId from a path

    path

    a string to parse a WebJar name from

    returns

    the artifact groupId based on the classpath

    Example:
    1. groupId("jquery/1.9.0/jquery.js") will return "org.webjars" if the classpath contains the org.webjars jquery jar

  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def img(params: Map[String, String] = Map.empty): Html

    A img tag

    A img tag

    returns

    An Html with the tag or an error / empty string (depending on mode)

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. val path: Try[String]
  19. def script(params: Map[String, String] = Map.empty): Html
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. def url: Try[String]

    Get the asset's reverse route

  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( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped