我已經愛上了玉,和不能忍受任何本身更多,但現在我有一個WordPress主題設計..如何預編譯jade.php模板?
所以..我用Codekit,它處理的玉就好了 - 我可以以某種方式讓它使用jade.php而不是節點模塊? (當我搜索npm find jade | grep php
時,我找不到任何提及php的軟件包)
這可以用grunt watch任務完成嗎?
我不想在主題中安裝jade.php並讓它在那裏運行。
而且,我知道,我能逃脫PHP ..
#sidebar1.sidebar.fourcol.last.clearfix(role="complementary")
| <?php if (is_active_sidebar('sidebar1')) : ?>
| <?php dynamic_sidebar('sidebar1'); ?>
| <?php else : ?>
// This content shows up if there are no widgets defined in the backend.
.alert.alert-help
p <?php _e('Please activate some Widgets.', 'bonestheme'); ?>
| <?php endif; ?>
但我喜歡用玉條件句..是貪婪?
正是我在找的,謝謝! – ptim