public class DefaultTwirlTemplateFormat extends Object implements TwirlTemplateFormat, Serializable
Constructor and Description |
---|
DefaultTwirlTemplateFormat(String extension,
String formatType,
Collection<String> imports) |
Modifier and Type | Method and Description |
---|---|
String |
getExtension()
Extension without the leading '.'.
|
String |
getFormatType()
Fully qualified class name for the template format.
|
Collection<String> |
getTemplateImports()
Imports that are needed for this template format.
|
String |
toString() |
public DefaultTwirlTemplateFormat(String extension, String formatType, Collection<String> imports)
public String getExtension()
TwirlTemplateFormat
getExtension
in interface TwirlTemplateFormat
public String getFormatType()
TwirlTemplateFormat
getFormatType
in interface TwirlTemplateFormat
public Collection<String> getTemplateImports()
TwirlTemplateFormat
These are just the packages or individual classes in Scala format.
Use my.package._
and not my.package.*
.
getTemplateImports
in interface TwirlTemplateFormat