[UTIL][Formatting] Add twigRenderFile

This commit is contained in:
2021-04-30 22:29:42 +01:00
committed by Hugo Sales
parent e9a96f1c9b
commit 837f644458
6 changed files with 10 additions and 5 deletions

View File

@@ -208,7 +208,7 @@ class Embed extends Plugin
$smart_crop = Common::config('thumbnail', 'smart_crop');
$attributes = $embed->getImageHTMLAttributes(['class' => 'u-photo embed']);
$res[] = Formatting::twigRender(<<<END
$res[] = Formatting::twigRenderString(<<<END
<article class="h-entry embed">
<header>
{% if attributes != false %}