Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/switowski/erb4slim
https://github.com/switowski/erb4slim
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/switowski/erb4slim
- Owner: switowski
- License: mit
- Created: 2015-01-23T17:19:22.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-25T17:50:16.000Z (almost 10 years ago)
- Last Synced: 2024-04-25T09:21:01.102Z (7 months ago)
- Language: Ruby
- Size: 191 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Erb4slim
[![Code Climate](https://codeclimate.com/github/switowski/erb4slim/badges/gpa.svg)](https://codeclimate.com/github/switowski/erb4slim)
[![Build Status](https://travis-ci.org/switowski/erb4slim.svg?branch=master)](https://travis-ci.org/switowski/erb4slim)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:
```ruby
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.