This procedure inserts the specified template into the application. The template name passed on as parameter refers to the currently displayed template directory. If the name is a directory, the current template directory is changed to this directory.