api / org.gradle.language.twirl / TwirlSourceSet / addUserTemplateFormat

addUserTemplateFormat

abstract fun addUserTemplateFormat(extension: String, templateType: String, vararg imports: String): Unit

Adds a custom template format.

Parameters

extension - file extension this template applies to (e.g., html).

templateType - fully-qualified type for this template format.

imports - additional imports to add for the custom template format.

Since
4.2