The display API handles any actual visual output to a web browser. Other than PHP echo statements, there is no server-processed code in template files. Template files allow modular editing of themes without having to edit any backend code whatsoever - this also allows for easy internationalisation. List of templates, locations, and purposes to follow.