3
我有一個HTML模板,並有一個與條件碼- >如何使用條件,如果到assetic
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
我想知道這如果如何使用這個assetic
{% block Javascript %}
{% javascripts output='js/dashboard/main.js' filter='?yui_js'
'dashboard/js/date-time/bootstrap-datepicker.min.js'
%}
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}
{% endblock %}
你想實現什麼?爲什麼不把這個代碼放在你的javascript塊中? – 2015-02-06 16:49:08