Project

erb4slim

0.0
No commit activity in last 3 years
No release in over 3 years
Converts single or multiple template files from ERB to Slim
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10.0

Runtime

 Project Readme

Erb4slim

Code Climate Build Status

Gem that allows you quickly convert ERB templates to Slim. It combines the usage of html2haml and haml2slim gems. You can use it either to convert a single file, all files in a directory or all files recursively starting from a specific directory. By combining the recursive and delete options you can replace all the .html.erb files with .html.slim in a project with one command.

Installation

Add this line to your application's Gemfile:

gem 'erb4slim'

And then execute:

$ bundle

Or install it yourself as:

$ gem install erb4slim

Usage

To see the available options simply call:

$ erb4slim

Contributing

If you have any ideas for new features let me know or create a pull request.