kvision / pl.treksoft.kvision.html / Template

Template

interface Template

Handlebars templates helper interface.

Properties

content

abstract var content: String?

rich

abstract var rich: Boolean

template

abstract var template: (Any?) -> String

templateData

open var templateData: Any?

Handlebars template data object.

templates

abstract var templates: Map<String, (Any?) -> String>

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.

setData

fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
fun <K : Any> Template.setData(obj: K): Unit

Extension function to set serializable object as a template data.

Inheritors

Tag

open class Tag : SimplePanel, Template

HTML tag component.