Twig,javascripts内部变量块

时间:2015-03-05 15:01:14

标签: twig block

{% set url = '@ApiBundle/Resources/public/js/themes/'~theme~'.js' %}

{%javascripts 
    '@ApiBundle/Resources/public/js/highcharts-3d.js'
     {{url}}

%}

<script src="{{asset_url}}"></script>

{%endjavascripts%} 

我有以下代码给出错误,我该如何使它工作?

0 个答案:

没有答案