所以我有这个Assetic模块集合:
'collections' => array(
'main_js' => array(
'assets' => array(
'js/jQuery.js',
'js/main.js',
etc...
);
);
);
输出:
<script type="text/javascript" src="js/jQuery.js"></script>
<script type="text/javascript" src="js/main.js"></script>
etc...
我需要添加defer属性:
<script type="text/javascript" src="js/jQuery.js" defer></script>
<script type="text/javascript" src="js/main.js" defer></script>
etc...
如何使用ZF2和Assetic执行此操作?