[docs] Update templates.md twig syntax

Twig uses a {% do [code] %} block to execute code that will not be outputted. {% [code] %} is a syntax error.