Render the template (the result of parse_template) and return the result as a string. The LOCALS and GLOBALS hashes contain the local and global namespaces, and may be updated by the template. The FNS hash specifies which functions should be exposed to the template.