duan39779 2013-10-01 03:23
浏览 37
已采纳

我怎样才能预编译jade.php模板?

I've fallen in love with Jade, and can't bear to se any more, but now I have a WordPress theme to design..

So.. I use Codekit, and it handles jade just fine - can I somehow get it to use jade.php instead of the node module? (I couldn't find any packages which mentioned php when i searched npm find jade | grep php)

Could this be accomplished with a grunt watch task?

I'd prefer not to install jade.php in the theme and have it run there.


Also, I'm aware that I can escape the 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; ?>

But I'd love to use jade conditionals.. is that greedy?

  • 写回答

2条回答 默认 最新

查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥40 单片机实验录制讲解视频
  • ¥15 srs-sip外部服务 webrtc支持H265格式
  • ¥15 在使用abaqus软件中,继承到assembly里的surfaces怎么使用python批量调动
  • ¥15 大一C语言期末考试,求帮助🙏🙏
  • ¥15 ch340驱动未分配COM
  • ¥15 Converting circular structure to JSON
  • ¥30 Hyper-v虚拟机相关问题,求解答。
  • ¥15 TSM320F2808PZA芯片 Bootloader
  • ¥45 谷歌浏览器出现开发者工具无法显示已创建的,但您可以调试已部署的代码。 状态代码 404, net::ERR HTTP RESPONSE CODE FAILURE
  • ¥15 如何解决蓝牙通话音频突发失真问题