|
Top objects hierarchy
|
- "Template File" is our template.
- "Global Substitutor" is global for an application object. It usually exists
only in one instance and initialized as start up time. It's responsibility is a
substitution of all words in our template which have @ symbol at the beginning and end.
- "Template Compiler" will parse template and save it into file with the same
name as template file but with different extension. It does it only one. So next time
"Template Loader" will load already compiled template and we will achieve great
performance boost.
- "Template Loader" is an object who knows here templates are located and is
responsible for loading our template.
- "Template" is an object oriented representation of our HTML page.
- "Program" is our program which will interact with "Template" object
to provide necessary information to build html page..
- "Local Substitutor" doing the same job as "Global Substitutor" but
it's local for particular request. So it can help us if we decide that different users
need to have different quality of pictures or any other specific information for this
request.
|
|
|