def METHOD_NAME(in_file, params):
    out_file = get_file_from_template(in_file)
    in_fh = open(in_file, 'r')
    template = ConfigTemplate(in_fh.read())
    out_fh = open(out_file, 'w')
    try:
       out_fh.write(template.substitute(params))
    except KeyError:
       print "missing value for config value in", in_file
       missing_key = True
       sys.exit(1)
    in_fh.close()
    out_fh.close()
    os.chmod(out_file, 0755)
    print "compiling template", in_file, "->", out_file