How can I convert html.slim files to html or html.erb?

后端 未结 4 790
离开以前
离开以前 2021-01-02 07:21

I need to convert the html.slim files in my Ruby on Rails application to html.erb. Is there any easy way to do it? I tried many options listed in Stack Overflow and other si

4条回答
  •  半阙折子戏
    2021-01-02 08:03

    I just did it using Codepen.io

    Start a new pen. Choosing Slim as your HTML Markdown language. Paste in your Slim - then click the view compiled button in your HTML pane.

    You'll see the straight HTML version of your markup.

    You can then copy that out.

提交回复
热议问题