from typing import Union
from pathlib import Path


def resolve_template(path: Union[Path, str]) -> str:
    """Load the file at path a a UTF-8 string."""
    with open(path, encoding='utf-8') as template_file:
        return template_file.read()