def render_message_template(message_template: List[dict], **kwargs):
    'Renders the jinja data included in the template itself.'
    data = []
    new_copy = copy.deepcopy(message_template)
    for d in new_copy:
        if d.get('status_mapping'):
            d['text'] = d['status_mapping'][kwargs['status']]
        if d.get('datetime'):
            d['datetime'] = Template(d['datetime']).render(**kwargs)
        d['text'] = Template(d['text']).render(**kwargs)
        d['title'] = Template(d['title']).render(**kwargs)
        if d.get('title_link'):
            d['title_link'] = Template(d['title_link']).render(**kwargs)
            if (d['title_link'] == 'None'):
                continue
            if (not d['title_link']):
                continue
        if d.get('button_text'):
            d['button_text'] = Template(d['button_text']).render(**kwargs)
        if d.get('button_value'):
            d['button_value'] = Template(d['button_value']).render(**kwargs)
        data.append(d)
    return data
Renders the jinja data included in the template itself.
def render_message_template(message_template: List[dict], **kwargs):
    
    data = []
    new_copy = copy.deepcopy(message_template)
    for d in new_copy:
        if d.get('status_mapping'):
            d['text'] = d['status_mapping'][kwargs['status']]
        if d.get('datetime'):
            d['datetime'] = Template(d['datetime']).render(**kwargs)
        d['text'] = Template(d['text']).render(**kwargs)
        d['title'] = Template(d['title']).render(**kwargs)
        if d.get('title_link'):
            d['title_link'] = Template(d['title_link']).render(**kwargs)
            if (d['title_link'] == 'None'):
                continue
            if (not d['title_link']):
                continue
        if d.get('button_text'):
            d['button_text'] = Template(d['button_text']).render(**kwargs)
        if d.get('button_value'):
            d['button_value'] = Template(d['button_value']).render(**kwargs)
        data.append(d)
    return data