【发布时间】:2013-03-05 10:33:01
【问题描述】:
我正在使用nanoc 构建一个静态网站,其中包含用于发送邮件的 PHP 脚本。简化结构:
/content/index.html
/content/contact.html
/content/mail.php
但是,当我执行 nanoc compile 时,我的输出文件夹中的一切都很好:
index.html
contact/index.html
mail/index.php
但在执行nanoc autocompile 时,我无法调用 PHP 脚本。 /contact/ 有效,但 /mail/ 无效。
这是我的规则文件的一部分:
route '*' do
if item.binary?
# Write item with identifier /foo/ to /foo.ext
original_filename(item)
else
# Write item with identifier /foo/ to /foo/index.extension
item.identifier + "index.#{item[:extension]}"
end
end
PHP 被视为非二进制。有谁知道我怎样才能让它与autocompile一起工作?
【问题讨论】:
标签: nanoc