I'm searching a directory (and deeper directories) for twig files that have variables {{ something var name }} and I would like to output into a file (twig-vars.txt).
Maybe using grep and regex? This is not my wheelhouse, so thanks in advance!
Example output (twig-vars.txt):
{{ somevar }}
{{ someothervar }}
{{ site.url }}
{{ ... }}