2013-10-01 53 views
3

我已經愛上了玉,和不能忍受任何本身更多,但現在我有一個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; ?> 

但我喜歡用玉條件句..是貪婪?

回答

1

https://github.com/ajschlosser/wordpress-jade-template非常適合普通的wordpress。我更喜歡bootstrap的人,所以我更喜歡https://github.com/ajschlosser/wordpress-jade-bootstrap-template的Bootstrap版本,因爲某些原因(即使Bootstrap更少定位)也依賴於Sass,所以我將它分開並使其更加偏向於偏倚。 https://github.com/Xedecimal/wordpress-jade-bootstrap-template如果你不想自己做,很容易。

+0

正是我在找的,謝謝! – ptim