Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Meta(val title: String? = null, val titleDefault: String? = null, val titleTemplate: String? = null, val titleAbsolute: String? = null, val description: String? = null, val generator: String? = null, val author: String? = null, val creator: String? = null, val publisher: String? = null, val applicationName: String? = null, val referrer: String? = null, val keywords: List<String>? = null, val themeColor: String? = null, val colorScheme: String? = null, val formatDetectionEmail: Boolean? = null, val formatDetectionTelephone: Boolean? = null, val formatDetectionAddress: Boolean? = null, val icon: String? = null, val shortcutIcon: String? = null, val openGraph: OpenGraph? = null, val robots: Robots? = null, val customMeta: Map<String, String>? = null)

Represents metadata for a web page, including title, description, author, and more.

Link copied to clipboard
@Serializable
data class OpenGraph(val title: String? = null, val description: String? = null, val images: List<OpenGraphImage>? = null, val type: String? = null, val url: String? = null, val locale: String? = null, val siteName: String? = null)

Represents Open Graph metadata for a web page.

Link copied to clipboard
@Serializable
data class OpenGraphImage(val url: String, val width: Int? = null, val height: Int? = null, val alt: String? = null)

Represents an Open Graph image with optional width, height, and alt text.

Link copied to clipboard
@Serializable
data class Robots(var noindex: Boolean = false, var nofollow: Boolean = false, var noarchive: Boolean = false, var nosnippet: Boolean = false, var noimageindex: Boolean = false)

Represents robots meta tags for controlling indexing and crawling behavior.

Link copied to clipboard
class SsrEngine(nodeExecutable: String? = null, port: Int? = null, externalSsrService: String? = null, rpcUrlPrefix: String? = null, rootId: String? = null, contextPath: String? = null, cacheTime: Int = DEFAULT_SSR_CACHE_TIME)

Server-Side Rendering engine for Kilua.

Properties

Link copied to clipboard
const val DEFAULT_SSR_CACHE_TIME: Int = 10

Functions

Link copied to clipboard

Converts a Meta instance to an HTML string representation.

Converts an OpenGraph instance to an HTML string representation.

Converts an OpenGraphImage instance to an HTML string representation.

Converts a Robots instance to an HTML string representation.