@property
def input(self):
    path = resourceAbsolutePath(os.path.join('quanty', 'templates', f'{self.templateName}'))
    try:
        with open(path) as fp:
            template = fp.read()
    except FileNotFoundError as e:
        message = f'Could not find the template file {self.templateName}.'
        logger.error(message)
        raise e
    for (pattern, replacement) in self.replacements.items():
        if isinstance(replacement, bool):
            replacement = str(replacement).lower()
        else:
            replacement = str(replacement)
        template = template.replace(f'${pattern}', str(replacement))
    return template
@property
def input(self):
    path = resourceAbsolutePath(os.path.join('quanty', 'templates', f'{self.templateName}'))
    try:
        with open(path) as fp:
            template = fp.read()
    except FileNotFoundError as e:
        message = f'Could not find the template file {self.templateName}.'
        logger.error(message)
        raise e
    for (pattern, replacement) in self.replacements.items():
        if isinstance(replacement, bool):
            replacement = str(replacement).lower()
        else:
            replacement = str(replacement)
        template = template.replace(f'${pattern}', str(replacement))
    return template