[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.
Merge pull request #265 from vierbergenlars/patch-1

[docs] Update templates.md twig syntax