def render_from_repo(repo_path, to_path, template_params, settings_dir):
TEMPLATE_PROJECT_FOLDER_PLACEHOLDER_NAME = '<STR_LIT>'<EOL>repo_path = repo_path.rstrip('<STR_LIT:/>')<EOL>to_path = to_path.rstrip('<STR_LIT:/>')<EOL>files_to_render = get_template_filelist(repo_path, ignore_folders=[TEMPLATE_PROJECT_FOLDER_PLACEHOLDER_NAME])<EOL>for single_file_path in files_to_render:<EOL><INDENT>source_file_path = single_file_path<EOL>dest_file_path = source_file_path.replace(repo_path, to_path)<EOL>render_from_single_file(source_file_path, dest_file_path, template_params)<EOL><DEDENT>settings_template_dir = os.path.join(repo_path, TEMPLATE_PROJECT_FOLDER_PLACEHOLDER_NAME)<EOL>settings_files = get_template_filelist(settings_template_dir)<EOL>for single_file_path in settings_files:<EOL><INDENT>source = single_file_path<EOL>dest = single_file_path.replace(settings_template_dir, settings_dir)<EOL>render_from_single_file(source, dest, template_params)<EOL><DEDENT>
rendering all files into the target directory