A site templating engine
Replaces a complex token with its value.
Returns a file through the method specified (file, MySQL page, etc).
Returns the page section of a file.
Returns the tokens section of a file.
The main function.
Parses the tokens section of a file.
Replaces a token with its value taking into account that it may contain other tokens within it.
Replaces tokens in $strFile with the text specified in $arrTokens.