def copy_template(name, dest):
    'Given a template name and a destination directory, copy the template\n       to the desination directory.\n    '
    template = get_template(name)
    dest_dir = os.path.dirname(dest)
    if (template and os.path.exists(dest_dir)):
        shutil.copytree(template, dest)
        return dest
Given a template name and a destination directory, copy the template
to the desination directory.
def copy_template(name, dest):
    'Given a template name and a destination directory, copy the template\n       to the desination directory.\n    '
    template = get_template(name)
    dest_dir = os.path.dirname(dest)
    if (template and os.path.exists(dest_dir)):
        shutil.copytree(template, dest)
        return dest