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))只是越野車?任何見解都會被讚賞