Executable template strategies are a MixedConcerns strategies.

Frameworks in this category enhance the basic framework of StaticFiles. Instead of having static files, a collection of templates is organised in a file system (or similarly structured schema). Such templates are executable (some interpreted, some compiled), and yield (possibly different) documents as a result of their execution. Upon an HTTP request, the template file denoted by the URL is executed and the resulting document is sent back to the browser in response.

Languages like PHP Hypertest Processor (PHP) and the early versions of Java Server Pages (JSP) are often used in this way.

The programmer should specify any other code using facilities provided by the particular template language used, mingled with the presentation logic for which such templates are geared.

ExecutableTemplates (last edited 2006-01-25 09:46:26 by IwanVosloo)