@library.global_function
def tags_to_text(tags):
 return ','.join([t.slug for t in tags])

@ library . global_function def tags_to_text ( tags ) : return ',' . join ( [ t . slug for t in tags ] )
converts a list of tag objects into a comma-separated slug list .