script

views.html.helper.script
object script extends BaseScalaTemplate[Appendable, Format[Appendable]], Template3[Array[(Symbol, String)], Html, RequestHeader, Appendable]

Attributes

Graph
Supertypes
trait Template3[Array[(Symbol, String)], Html, RequestHeader, Appendable]
class BaseScalaTemplate[Appendable, Format[Appendable]]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
script.type

Members list

Value members

Concrete methods

def apply(args: (Symbol, String)*)(body: => Html)(implicit request: RequestHeader): Appendable

Generate an inline script with CSP nonce.

Generate an inline script with CSP nonce.

Example:

@script(args = Symbol("type") -> "text/javascript") {
 ...
}

See Scripting for more information.

Value parameters

args

Set of extra HTML attributes.

body

The script body.

Attributes

def f: (Array[(Symbol, String)]) => (=> Html) => RequestHeader => Appendable
def ref: this.type
def render(args: Array[(Symbol, String)], body: Html, request: RequestHeader): Appendable

Inherited methods

def _display_(o: Any)(implicit m: ClassTag[Appendable]): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: Appendable): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: NodeSeq): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: Unit): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: String): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: AnyVal): Appendable

Attributes

Inherited from:
BaseScalaTemplate

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product