from pathlib import Path


def _template(name):
    """Read the specified template file."""
    template = Path(__file__).parent / 'templates' / name
    with open(template, 'r') as file:
        return file.read().strip()