Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经安装了 gems"haml"和"haml-rails". 现在我想使用该命令将我的 erb 文件转换为 haml:
"haml"
"haml-rails"
find . -name '*erb' | \ xargs ruby -e 'ARGV.each { |i| puts "html2haml -r #{i} #{i.sub(/erb$/,"haml")}"}' | \ bash
但它抛出了这个错误:
html2haml:找不到命令
我错过了什么?
html2haml被从haml宝石转移到它自己的宝石中。
html2haml
haml
您可以在此处找到有关它的更多信息:
https://github.com/haml/html2haml