add documentation to get_template_from_request