ViewData

com.alecdorrington.pageloader.ViewData
case class ViewData(name: String, iconPath: String = ..., pageTitle: String = ..., languageCode: String = ..., charset: String = ...)

Metadata for a View.

Value parameters

charset

The character encoding declared in the <META charset> tag.

iconPath

The URL path to the page favicon.

languageCode

The BCP 47 language code for the lang attribute of the <HTML> tag.

name

The name of the view. Include only the name, with no package prefix and no parentheses (e.g. IndexView). In order to be visible to the client, a view must be exported using the @JSExportTopLevel annotation, and the name used in that annotation must match the name specified here.

pageTitle

The title of the page.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def render(hotReloadWebsocketPath: Option[String] = ..., scalajsPath: String = ...): String

Uses PageTemplate to produce a HTML string for this view, which can then be served to the client.

Uses PageTemplate to produce a HTML string for this view, which can then be served to the client.

Value parameters

hotReloadWebsocketPath

Whether hot reload is enabled on the client (yes if Some ), and if so, at which URL path can the heartbeat websocket connection be established?

scalajsPath

The URL path to the compiled Scala.js script.

Attributes

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product