我在Symfony 3上有项目,我安装并开始使用资产。所以简单地问一下。是否可以对包含资产的文件进行评论?
包含文件 - 旧方式:
<!-- Jquery 1.12.4 -->
<script src="{{ asset('assets/jquery-1.12.4/jquery.min.js') }}"></script>
<!-- Bootstrap - Latest compiled and minified JavaScript -->
<script src="{{ asset('assets/bootstrap-3.3.7/js/bootstrap.min.js') }}"></script>
<!-- Superfish - drop down navigation menu js -->
<script src="{{ asset('assets/super-fish-1.7.7/dist/js/superfish.js') }}"></script>
<!-- Moment.js - Parse, validate, manipulate, and display dates in JavaScript -->
<script src="{{ asset('assets/moment-2.15.1/moment.js') }}"></script>
...
包含文件 - 具有资产:(对所包含的文件没有任何评论)
{% javascripts
'assets/jquery-1.12.4/jquery.min.js'
'assets/bootstrap-3.3.7/js/bootstrap.min.js'
'assets/super-fish-1.7.7/dist/js/superfish.js'
'assets/moment-2.15.1/moment.js'
...
%}
<script src="{{ asset_url }}"></script>
{% endjavascripts %}