Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Haml2Slim

Haml to Slim converter.

Limitation

Due to the complex logic behind both Haml's and Slim's parsers, there is currently no way of reliably converting between Haml and Slim templates.

Haml2Slim only serves as a preliminary tool for templates conversion. You should always manually verify the converted templates.

Usage

You may convert files using the included executable haml2slim.

# haml2slim -h

Usage: haml2slim INPUT_FILENAME_OR_DIRECTORY [OUTPUT_FILENAME_OR_DIRECTORY] [options]
        --trace                      Show a full traceback on error
    -d, --delete                     Delete HAML files
    -h, --help                       Show this message
    -v, --version                    Print version

Alternatively, to convert files or strings on the fly in your application, you may do so by calling Haml2Slim.convert!.

License

This project is released under the MIT license.

Author

Fred Wu

About

Haml to Slim converter.

Resources

Languages

You can’t perform that action at this time.