Using "View" templates - Model, View, * (MV*) Design Pattern
Variations: Controller, Presenter, ViewModel, Whatever
MVC design pattern separates:
- Model. data model
- View. user interface
- Controller. control and flow logic
You can adopt this design pattern regardless of language or server-architecture. Some frameworks make using MV* possible, some make it easy, some insist on it.