Document the 'appended environment' functionality of template() and the interaction with 'path_map'.