# "if else" construction
template = MustacheTemplate()
template.template = "Hello, {{{NAME}}}{{ #if EXCLAMATION }}!{{/if}}{{{^EXCLAMATION}}}.{{{/EXCLAMATION}}}"
variables = {
    'NAME': 'Alex',
    'EXCLAMATION': True
}

result = template.evaluate_with_variables(variables)
print(result)