【问题标题】:Make jade compile to index.php instead of index.html让jade编译成index.php而不是index.html
【发布时间】:2012-06-29 00:52:45
【问题描述】:

如何让jade编译成index.php而不是index.html?

【问题讨论】:

  • 您是在尝试生成 PHP 代码(如果是,为什么?),还是只关心文件名?
  • 您好,只是文件名。我正在使用 MAMP 在本地工作。要测试 typekit 字体,我需要使用 localhost:8888/ 打开页面
  • 你是用make来运行jade吗?如果是这样,我会在调用jade之后使用make重命名文件,因为I don't immediately see a way to control the output filename(s)是jad​​e产生的。

标签: pug


【解决方案1】:

没有找到“配置方式”,但在 Codekit 中手动我们可以指定输出文件并设置 index.php 而不是 index.html。

【讨论】:

    【解决方案2】:

    在 CodeKIT 上,转到配置和页面底部,将 *.html 更改为 *.php,查看图片 以查看更改位置!

    【讨论】:

      猜你喜欢
      • 2013-04-18
      • 2012-12-21
      • 2014-09-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-24
      • 1970-01-01
      相关资源
      最近更新 更多