@@ -36,6 +36,9 @@ |
||
| 36 | 36 | return $this->renderInLayout($body, static::RENDER_HTML_LAYOUT, $data); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @return string |
|
| 41 | + */ |
|
| 39 | 42 | public function renderTextLayout(array $data = []): ?string |
| 40 | 43 | { |
| 41 | 44 | if (! $this->mailTemplate->getTextTemplate()) { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\MailTemplates; |
| 4 | 4 | |
| 5 | -use Mustache_Engine; |
|
| 6 | 5 | use Illuminate\Support\Str; |
| 6 | +use Mustache_Engine; |
|
| 7 | 7 | use Spatie\MailTemplates\Exceptions\CannotRenderTemplateMailable; |
| 8 | 8 | |
| 9 | 9 | class TemplateMailableRenderer |