""" This module holds the template tags of the ``brainstormers`` app. """


from django import template

register = template.Library()


@register.simple_tag
def get_brainstormer_create_url(session, brainstormer_type):
    """
    Get the create url of a brainstormer.

    Parameters
    ----------
    session: Session
        The session the brainstormer will be linked to
    brainstormer_type: str
        one of ``BRAINSTORMER_TYPE_CHOICES``

    Returns
    -------
    str
        The create url corresponding to the session/brainstormer_type
    """

    return session.get_brainstormer_create_url(brainstormer_type)
