Template ($ root = ", $ unknowns =" remove ") constructor: root is the directory where the template file is stored, the default is the root directory unknown to process the unknown variable, Remove is unknown in the template, Keep is The unknown variable in the template is retained, and the Comment converts unknown variables to HTML annotations, the default is Remove.
The set_root ($ root) test is whether the parameter root is a directory, and if so, set the directory to the directory placed by the touch file.
Set_unknowns ($ unknowns = "keep") Sets how to handle unknown variables
Set_file ($ Handle, $ filename = ") is initialized for each template file, which is used in the later processing instead of the template file. Function call parameters can be paired with an array of Handle / FileName or by subscript is a group value value FileName
Set_block ($ PARENT, $ Handle, $ Name = ") Parameter Parent contains a block named by the parameter handle, which deletes the block and generates a new template variable in the value of the parameter name, and sets Handle contains only the templates in the original block, and if the NAME variable is omitted, it is considered to be the same as the Handle. Example: In the box template contains the ROW block: