public function renderAttribute($attribute, array $params)
    {
        $twig = $this->getTwig(new EmailTemplateLoader([
            'attributeName' => $attribute,
        ]));

        try {
            $result = $twig->render($this->shortcut, $params);
        } catch (\Exception $e) {
            $result = 'Error compiling email ' . $attribute . ': ' . $e->getMessage();
        }

        return $result;
    }