ContextKt

object ContextKt
Defines the notion of a *Render Context* for server-side pages in Gust. This protocol message is filled out with data
as configured by the developer (from `application.yml` and the active controller, as applicable) and provided as an
injected value to all server-side render operations.

When preparing context in Gust, adding a static script or stylesheet is done through `Context`. Setting page metadata
like the title, keywords, and manifest - also all done through `Context`. This of course has the added benefit of
being completely serializable, repeatable, and so on (i.e. all the benefits Protobuf brings).

Major context modules include:
- *Metadata*: Page-level metadata.
- *OpenGraph*: Properties for OG tags.
- *Twitter*: Properties for Twitter cards.
- *AppManifest*: Information to link or derive a web application manifest.
- *Styles*: Stylesheets and inline head-injected styles ("lifted styles").
- *Scripts*: Scripts to include, and inline head-injected logic ("lifted JS").

Protobuf type elide.page.Context

Types

Link copied to clipboard

Protobuf type elide.page.Context.AppManifest

Link copied to clipboard

Protobuf type elide.page.Context.ClientHints

Link copied to clipboard
object CookieKt

Protobuf type elide.page.Context.Cookie

Link copied to clipboard
class Dsl
Link copied to clipboard

Protobuf type elide.page.Context.DynamicETag

Link copied to clipboard
object FontsKt

Protobuf type elide.page.Context.Fonts

Link copied to clipboard
object MetadataKt

Protobuf type elide.page.Context.Metadata

Link copied to clipboard
object PageLinkKt

Protobuf type elide.page.Context.PageLink

Link copied to clipboard

Protobuf type elide.page.Context.RDFPrefix

Link copied to clipboard

Protobuf type elide.page.Context.ResponseHeader

Link copied to clipboard
object ScriptsKt

Protobuf type elide.page.Context.Scripts

Link copied to clipboard
object StylesKt

Protobuf type elide.page.Context.Styles

Functions

Link copied to clipboard
@JvmName(name = "-initializeappManifest")
inline fun appManifest(block: ContextKt.AppManifestKt.Dsl.() -> Unit): Context.AppManifest
Link copied to clipboard
@JvmName(name = "-initializeclientHints")
inline fun clientHints(block: ContextKt.ClientHintsKt.Dsl.() -> Unit): Context.ClientHints
Link copied to clipboard
@JvmName(name = "-initializecookie")
inline fun cookie(block: ContextKt.CookieKt.Dsl.() -> Unit): Context.Cookie
Link copied to clipboard
@JvmName(name = "-initializedynamicETag")
inline fun dynamicETag(block: ContextKt.DynamicETagKt.Dsl.() -> Unit): Context.DynamicETag
Link copied to clipboard
@JvmName(name = "-initializefonts")
inline fun fonts(block: ContextKt.FontsKt.Dsl.() -> Unit): Context.Fonts
Link copied to clipboard
@JvmName(name = "-initializemetadata")
inline fun metadata(block: ContextKt.MetadataKt.Dsl.() -> Unit): Context.Metadata
Link copied to clipboard
@JvmName(name = "-initializepageLink")
inline fun pageLink(block: ContextKt.PageLinkKt.Dsl.() -> Unit): Context.PageLink
Link copied to clipboard
@JvmName(name = "-initializerDFPrefix")
inline fun rDFPrefix(block: ContextKt.RDFPrefixKt.Dsl.() -> Unit): Context.RDFPrefix
Link copied to clipboard
@JvmName(name = "-initializeresponseHeader")
inline fun responseHeader(block: ContextKt.ResponseHeaderKt.Dsl.() -> Unit): Context.ResponseHeader
Link copied to clipboard
@JvmName(name = "-initializescripts")
inline fun scripts(block: ContextKt.ScriptsKt.Dsl.() -> Unit): Context.Scripts
Link copied to clipboard
@JvmName(name = "-initializestyles")
inline fun styles(block: ContextKt.StylesKt.Dsl.() -> Unit): Context.Styles