📜  symfony twig global - Html 代码示例

📅  最后修改于: 2022-03-11 14:52:53.845000             🧑  作者: Mango

代码示例1
# config/packages/twig.yaml
twig:
    # ...
    globals:
        ga_tracking: 'UA-xxxxx-x'
//Use with 

The Google tracking code is: {{ ga_tracking }}