The plain code strategy is the very simplest of all strategies for generating markup. It is a ProgrammingLanguageCentric strategy for generating a dynamic page.
Following this strategy, code is invoked that either writes the markup as text to a file, or just returns it in a string. This is the strategy used by Java Servlets.
The Python programming language function provided below illustrates the point:
1 def foo():
2 print '<body>'
3 for word in ['these', 'are', 'words']:
4 print '<p>Word: %s</p>' % word
5
6 print '</body>'
Note that the print statement in Python writes to standard output. The function could also have written to a different file, or have returned a string value.