Source

remarkz / utils.py

# -*- coding:utf-8 -*-

from functools import wraps


def split_tags(func):
    @wraps(func)
    def wrapper(plus_separated_tags=''):
        if plus_separated_tags:
            return func(*plus_separated_tags.split('+'))
        else:
            return func()
    return wrapper