--- url: "https://martinfowler.com/eaaCatalog/twoStepView.html" titulek: "Two Step View" h1: "Two Step View" popis: "Turns domain data into HTML in two steps: first by forming some kind of logical page, then rendering the logical page into HTML." jazyk: "" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 21:09:03" znaku: 1379 slov: 207 kodovani: "utf-8" sha256: "475c2977f16ab483f1cd6a1886bfe417f1684ef05659748c0e91bbb988b42508" --- # Two Step View Turns domain data into HTML in two steps: first by forming some kind of logical page, then rendering the logical page into HTML. If you have a Web application with many pages, you often want a consistent look and organization to the site. If every page looks different, you end up with a site that users find confusing. You may also want to make global changes to the appearance of the site easily, but common approaches using [Template View](templateView.html) or [Transform View](transformView.html) make this difficult because presentation decisions are often duplicated across multiple pages or transform modules. A global change can force you to change several files. Two Step View deals with this problem by splitting the transformation into two stages. The first transforms the model data into a logical presentation without any specific formatting; the second converts that logical presentation with the actual formatting needed. This way you can make a global change by altering the second stage, or you can support multiple output looks and feels with one second stage each. for more details go to [Chapter 14](https://learning.oreilly.com/library/view/patterns-of-enterprise/0321127420/ch14.html#ch14lev1sec6) of the online ebook at oreilly.com This pattern is part of [Patterns of Enterprise Application Architecture](.) [Martin Fowler](/) 05 March 2003