Package org.gradle.language.twirl
Interface TwirlTemplateFormat
Twirl Template format mapping
- Since:
- 4.2
-
Method Summary
Modifier and TypeMethodDescriptionExtension without the leading '.'.Fully qualified class name for the template format.Imports that are needed for this template format.
-
Method Details
-
getExtension
String getExtension()Extension without the leading '.'.- Returns:
- file extension
-
getFormatType
String getFormatType()Fully qualified class name for the template format.- Returns:
- class name of the format
-
getTemplateImports
Collection<String> getTemplateImports()Imports that are needed for this template format.These are just the packages or individual classes in Scala format. Use
my.package._
and notmy.package.*
.- Returns:
- collection of imports to be added after the default Twirl imports
-