en basit yoluyla str_replace ile yapılabilir.
$content = $post->content;
$content = str_replace("{title}", $post->title, $content);
$content = str_replace("{date}", $post->date, $content);
echo $content;
str_replace("{tarih}", date('d.m.Y H:i:s'), $metin);
Twig kütüphanesini görmüş olabilirsiniz. Orada dediğiniz gibi template renderlanıyor.
cevaplar için teşekkürler arkadaşlar str_replace ile oluyormuş hallettim onunla