如何将 html.slim 转换为 html.erb? [英] How can I convert html.slim to html.erb?
问题描述
我有很多 html.slim 文件,我想将它们转换为 html.erb 文件,因为我不熟悉 slim 语法.有slim到erb的转换器吗?
I have many html.slim files that I would like to convert into html.erb files since I am not familiar with the slim syntax. Is there a converter for slim to erb?
我找到了一个将 html 转换为 slim 的转换器,它具有我正在寻找的功能,但它不能将 slim 转换为 erb.http://html2slim.herokuapp.com/
I found a converter for html to slim that has the functionality I am looking for but it does not do slim to erb. http://html2slim.herokuapp.com/
推荐答案
使用slim本身的Slim::ERBConverter,也有命令行工具slimrb,见http://rdoc.info/gems/slim/frames 获取更多文档.
Use Slim::ERBConverter from slim itself , there is also a command-line tool slimrb, see http://rdoc.info/gems/slim/frames for more documentation.
这篇关于如何将 html.slim 转换为 html.erb?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!