retire templating_functions