AssetReference

@Serializable
data class AssetReference(val module: AssetModuleId, val assetType: AssetType, val href: String, val type: String? = null, val inline: Boolean = false, val preload: Boolean = false) : Serializable

Represents a resolved reference to an asset at serving-time, before it is rendered into a link or other tag.

Parameters

module

ID of the asset module being referenced.

assetType

Type of asset being referenced.

href

Relative link to serve the asset.

type

Type override for the tag, if applicable.

inline

Whether this asset is eligible to be inlined into the page.

preload

Whether this asset is eligible to be preloaded.

Constructors

Link copied to clipboard
constructor(module: AssetModuleId, assetType: AssetType, href: String, type: String? = null, inline: Boolean = false, preload: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val inline: Boolean = false
Link copied to clipboard
Link copied to clipboard
val preload: Boolean = false
Link copied to clipboard
val type: String? = null