如何将html.slim转换为html.erb? [英] How can I convert html.slim to html.erb?

查看:228
本文介绍了如何将html.slim转换为html.erb?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多html.slim文件,我想将其转换为html.erb文件,因为我不熟悉纤细的语法。是否有一个转换器为slim to 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转换器,它具有我正在寻找的功能,但它并没有做到微不足道。
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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆