import re


def get_jinja_variables(text):
    """Gets jinja variables

    Args:
        line (string): text to get jinja variables

    Returns:
        [list]: returns list of jinja variables
    """
    variables = []
    regex_pattern = regex_pattern = re.compile(
        "(\\{{)((.|\n)*?)(\\}})", re.MULTILINE)
    for line in regex_pattern.finditer(text):
        variables.append(line.group(2))
    return variables