0
我在我的base.html.twig這部分代碼:的Symfony2 /枝條重複的樣式
{% stylesheets 'bundles/study/css/*' filter='cssrewrite' %}
<link rel="stylesheet" href="{{ asset('bundles/study/css/style.css') }}" />
<link rel="stylesheet" href="{{ asset('bundles/study/css/boilerplate.css') }}">
<link rel="stylesheet" href="{{ asset('bundles/study/css/jquery-ui.min.css')}}">
<link rel="stylesheet" href="{{ asset('bundles/study/css/jquery-ui.structure.min.css')}}">
<link rel="stylesheet" href="{{ asset('bundles/study/css/jquery-ui.theme.min.css')}}">
{% endstylesheets %}
而且Symfony2中/枝條在網頁代碼生成:
<link href="/bundles/study/css/style.css" rel="stylesheet">
<link href="/bundles/study/css/boilerplate.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.min.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.structure.min.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.theme.min.css" rel="stylesheet">
<link href="/bundles/study/css/style.css" rel="stylesheet">
<link href="/bundles/study/css/boilerplate.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.min.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.structure.min.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.theme.min.css" rel="stylesheet">
<link href="/bundles/study/css/style.css" rel="stylesheet">
<link href="/bundles/study/css/boilerplate.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.min.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.structure.min.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.theme.min.css" rel="stylesheet">
<link href="/bundles/study/css/style.css" rel="stylesheet">
<link href="/bundles/study/css/boilerplate.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.min.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.structure.min.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.theme.min.css" rel="stylesheet">
<link href="/bundles/study/css/style.css" rel="stylesheet">
<link href="/bundles/study/css/boilerplate.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.min.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.structure.min.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.theme.min.css" rel="stylesheet">
<link href="/bundles/study/css/style.css" rel="stylesheet">
<link href="/bundles/study/css/boilerplate.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.min.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.structure.min.css" rel="stylesheet">
<link href="/bundles/study/css/jquery-ui.theme.min.css" rel="stylesheet">
爲什麼枝條產生6調用相同的鏈接?
我可以propvide有關代碼的任何信息,如果我退出
'{%樣式 '束/研究/ CSS/*' 濾波器=' cssrewrite '%}' 和 '{%endstylesheets%}'
通常所有的工作(我認爲),但我需要理解爲什麼嫩枝創造6次同樣的思路