fromTemplate

abstract fun fromTemplate(templateName: String, model: Map<String, Any>): T

Create an object of this type from the given template.

Return

the created object of type T

Parameters

templateName

the name of the template to render

model

the model data to use for template rendering