TwirlTemplateFormat (Gradle API 5.0)
Date: 2018-11-26

Package org.gradle.language.twirl

## Interface TwirlTemplateFormat

-     @Incubating
      public interface TwirlTemplateFormat

  Twirl Template format mapping
  Since:
    4.2

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.lang.String` | `getExtension​()` | Extension without the leading '.'.
    `java.lang.String` | `getFormatType​()` | Fully qualified class name for the template format.
    `java.util.Collection<java.lang.String>` | `getTemplateImports​()` | Imports that are needed for this template format.

- - ### Method Detail

    - #### getExtension

          java.lang.String getExtension​()

      Extension without the leading '.'.
      Returns:
        file extension

    - #### getFormatType

          java.lang.String getFormatType​()

      Fully qualified class name for the template format.
      Returns:
        class name of the format

    - #### getTemplateImports

          java.util.Collection<java.lang.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 not `my.package.*`.

      Returns:
        collection of imports to be added after the default Twirl imports