-
-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This aims to bring the twirl module closer to parity with the twirl SBT plugin. It adds support for: * Overriding full set of twirl template imports rather than just appending additional imports onto the default set ** Renames `twirlAdditionalImports` to `twirlImports` ** Sets the default value to `play.japi.twirl.compiler.TwirlCompiler.DEFAULT_IMPORTS` * Overriding set of twirl extensions/formats that will be compiled ** Adds `def twirlFormats: T[Map[String, String]]` to define a mapping from extension to class name ** Sets the default value to ```scala Map( "html" -> "play.twirl.api.HtmlFormat", "xml" -> "play.twirl.api.XmlFormat", "js" -> "play.twirl.api.JavaScriptFormat", "txt" -> "play.twirl.api.TxtFormat" ) ``` Commits: * Allow overriding all twirl imports. * Allow overriding twirl formats. * Update twirl docs. Pull request: #952
- Loading branch information
Showing
7 changed files
with
144 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...rib/twirllib/test/resources/hello-world-inclusive-dot/core/views/test.scala.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
contrib/twirllib/test/resources/hello-world/core/views/test.scala.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.