by shigemk2

当面は技術的なことしか書かない

Twig

twig replace

twig replace 詳しい説明はなかった ドキュメントだけみて雰囲気をつかむかんじ {{ "I like %this% and %that%."|replace({'%this%': foo, '%that%': "bar"}) }} https://twig.symfony.com/doc/2.x/filters/replace.html