feat: Implemented the Template View pattern (#1320) (#3110)

* pattern:implemented the Template View pattern (#1320)

* fix:added links in README and updated package name (#1320)

---------

Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
This commit is contained in:
Malak Elbanna
2025-01-06 19:24:40 +02:00
committed by GitHub
co-authored by Ilkka Seppälä
parent ebcc070e11
commit 5ba45701bf
13 changed files with 635 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
@startuml
package com.iluwater.templateview {
class App {
+ App()
+ main(args : String[]) {static}
}
abstract class TemplateView {
- LOGGER : Logger {static}
+ TemplateView()
+ render() : void {final}
# printHeader() : void
# renderDynamicContent() : void {abstract}
# printFooter() : void
}
class HomePageView {
- LOGGER : Logger {static}
+ HomePageView()
+ renderDynamicContent() : void
}
class ContactPageView {
- LOGGER : Logger {static}
+ ContactPageView()
+ renderDynamicContent() : void
}
}
App --> TemplateView
TemplateView <|-- HomePageView
TemplateView <|-- ContactPageView
@enduml
Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB