-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use a PrintWriterOutput with the writer from the response and don't write directly to the outputStream. This allows for capturing the response with a RepsponseWriter like here in this example: https://github.com/tschuehly/spring-view-component/blob/41c57fbd2acbe7439982b60291765e3586a7fbc8/core/src/main/kotlin/de/tschuehly/spring/viewcomponent/core/action/ViewActionFilter.kt * usePrecompiledTemplates property instead of productionProfileName as this makes it clear that you need to precompile the templates with gradle/maven AutoConfiguration: switched to constructor inject fixed missing templateSuffix configuration in ReactiveJteViewResolver added spring-configuration-metadata for IDE IntelliSense in application.properties updated readme * Align JteView * remove templateEngine.setBinaryStaticContent(true) and usePrecompiledTemplates is boolean * remove boxing of boolean * add developmentMode and adjust README
- Loading branch information
Showing
14 changed files
with
171 additions
and
106 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
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
30 changes: 30 additions & 0 deletions
30
jte-spring-boot-starter-2/src/main/resources/META-INF/spring-configuration-metadata.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"groups": [ | ||
{ | ||
"name": "gg.jte", | ||
"type": "gg.jte.springframework.boot.autoconfigure.JteProperties", | ||
"sourceType": "gg.jte.springframework.boot.autoconfigure.JteProperties" | ||
} | ||
], | ||
"properties": [ | ||
{ | ||
"name": "gg.jte.usePrecompiledTemplates", | ||
"type": "java.lang.Boolean", | ||
"description": "You can precompile the templates for faster startup and rendering. To use this you need to include the Maven or Gradle Plugin: https://github.com/casid/jte/blob/main/DOCUMENTATION.md#precompiling-templates", | ||
"sourceType": "gg.jte.springframework.boot.autoconfigure.JteProperties" | ||
}, | ||
{ | ||
"name": "gg.jte.templateLocation", | ||
"type": "java.lang.String", | ||
"description": "You can change the location where jte expects the templates to compile", | ||
"sourceType": "gg.jte.springframework.boot.autoconfigure.JteProperties" | ||
}, | ||
{ | ||
"name": "gg.jte.templateSuffix", | ||
"type": "java.lang.String", | ||
"description": "You can configure the file suffix of jte templates the compiler resolves", | ||
"sourceType": "gg.jte.springframework.boot.autoconfigure.JteProperties" | ||
}, | ||
], | ||
"hints": [] | ||
} |
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
11 changes: 11 additions & 0 deletions
11
...-3/src/main/java/gg/jte/springframework/boot/autoconfigure/JteConfigurationException.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package gg.jte.springframework.boot.autoconfigure; | ||
|
||
public class JteConfigurationException extends RuntimeException { | ||
public JteConfigurationException(String message) { | ||
super(message); | ||
} | ||
|
||
public JteConfigurationException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
} |
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
Oops, something went wrong.