iluwatar / java-design-patterns

Design patterns implemented in Java
https://java-design-patterns.com
Other
89.57k stars 26.48k forks source link

Template View pattern #1320

Open iluwatar opened 4 years ago

iluwatar commented 4 years ago

Description:

The Template View design pattern is aimed at creating a consistent structure for rendering views, ensuring that the core layout and styling are maintained while allowing for specific content to be dynamic. This pattern is particularly useful for web applications where views share a common framework but differ in the specific data or content they present. The main elements of the Template View design pattern include:

References:

Acceptance Criteria:

  1. Implement a base template class that defines the overall structure of the view.
  2. Create dynamic content sections that can be overridden by specific view implementations.
  3. Ensure clear documentation and examples demonstrating the usage of the Template View pattern in different scenarios.
PalAditya commented 4 years ago

Hi @iluwatar , I would like to work on this issue if possible please If I understand correctly, all this pattern is concerned with is creating a dynamic HTML page content based on markups, and ensuring that processing logic is delegated to the Java application, not the html page, right? Would replicating the model shown in the link by a templating engine like Thymeleaf (with a little more added complexity and a 'bad' design alongside the correct one) be acceptable for this issue?

iluwatar commented 4 years ago

@PalAditya yes, I agree with your analysis. It should be sufficient to demonstrate how a templating engine is typically used to render HTML pages.

iluwatar commented 2 years ago

This issue is free for taking again.

Linly1080 commented 2 years ago

Hi, I'd like to work on this issue. Could it be assigned to me if still available?

iluwatar commented 2 years ago

Yes @Linly1080, sorry for late reply

Linly1080 commented 2 years ago

Sorry, I have no time work on it now.

alainalawson02 commented 2 years ago

can I take this? @iluwatar

iluwatar commented 1 year ago

Ok @alainalawson02

alainalawson02 commented 1 year ago

Expected latest time to have complete by: 28/10/2022

alainalawson02 commented 1 year ago

update: still working on this, please give us the weekend for final product. many thanks

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.