<reponame>jessicsous/Curso_Python<gh_stars>1-10
from string import Template
from datetime import datetime

with open('template.html', 'r') as html:
    template = Template(html.read())
    data_atual = datetime.now().strftime('%d/%m/%y')
    corpo_msg = template.safe_substitute(nome='<NAME>', data=data_atual)

print(corpo_msg)
from string import Template
from datetime import datetime

with open('template.html', 'r') as html:
    template = Template(html.read())
    data_atual = datetime.now().strftime('%d/%m/%y')
    corpo_msg = template.safe_substitute(nome='<NAME>', data=data_atual)

print(corpo_msg)