我正在尝试将instantclick添加到我的rails应用中,我有slim-lang个问题。
如何将此代码转换为可接受的slim-lang语法?
<script src="instantclick.min.js" data-no-instant></script>
<script data-no-instant>InstantClick.init();</script>
现在我正在处理这个问题:
script[src="/assets/javascripts/plugins/instantclick.min.js" data-no-instant]
|<script data-no-instant>InstantClick.init();</script>
思想?
答案 0 :(得分:0)
它可以是这样的:
script data-no-instant="" src="/assets/javascripts/plugins/instantclick.min.js"
script data-no-instant="" InstantClick.init();
或者:
script data-no-instant="" src="/assets/javascripts/plugins/instantclick.min.js"
script data-no-instant=""
| InstantClick.init();