in lambdas/index.py [0:0]
def compile_template(template_params, template=None):
if not template:
template = '{"text": "Build of *$PROJECT* reached status *$STATUS*"}'
if not template_params:
template_params = {}
t = Template(template)
return t.substitute(template_params)