0
是guard-haml还在开发和使用?上次提交似乎是5个月前(不包括对自述文件的更新)。我正试图获得简单的输入/输出配置。但是,输入目录总是以输出位置为前缀。Guard-Haml编译错误输出目录
即 “资源/ TEMPL /文件/ one.haml” 被编译为 “资源/公/ 资源/ TEMPL /文件/ one.html”。但我真正想要的是“resources/public/one.html”。因此,例如,此配置...
guard :haml, input: 'resources/templ/documents/' , output: 'resources/public/' do
watch(%r{resources/templ/documents/.+\.(haml)$})
end
产生不正确的输出。
07:30:28 - INFO - Successfully compiled haml to html!
> [#] # resources/templ/documents/one.haml -> resources/public/resources/templ/documents/one.html
而这些配置什么都不产生。
guard :haml do
watch(/^.+(\.html\.haml)$/)
end
guard :haml, input: 'resources/templ/documents/' , output: 'resources/public/' do
watch(/^resources\/templ\/documents\/+(\.html\.haml)$/)
end
group :main do
guard :haml, input: 'resources/templ/documents/' , output: 'resources/public/' do
watch(/^resources\/templ\/documents\/+(\.html\.haml)$/)
end
end
我是否缺少正确的配置?或者是guard-haml(使用guard-haml(1.1.0))只是越野车?任何见解都会被赞赏