-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement HTML policy and enhance context management in views
Modified view component configurations and context management by implementing an HTML policy for JTE templates and shifting from componentBean to ApplicationContext. The HTML policy includes directives to prevent uppercase tags and attributes, output in tags and attributes, unquoted attributes, and invalid attribute names. This enhancement improves HTML security and code's readability. Additionally, it enables potentially better context management by using applicationContext, which allows wider scope compared with the previously used componentBean.
- Loading branch information
Showing
4 changed files
with
34 additions
and
17 deletions.
There are no files selected for viewing
15 changes: 4 additions & 11 deletions
15
core/src/main/kotlin/de/tschuehly/spring/viewcomponent/core/IViewContext.kt
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