Created
September 7, 2011 19:06
-
-
Save JeffreyWay/1201417 to your computer and use it in GitHub Desktop.
Using Slim in Simple PSD -> HTML Type Projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This assumes that you've installed and are familiar with Slim: http://slim-lang.com/ | |
# Open ~/.bash_profile (if you're a Mac user), and add the following function. | |
function slimtohtml() { | |
slimrb -p $@.slim > $@.html | |
} | |
# Save it, restart Terminal (or: source ~/.bash_profile), and convert. | |
# The following line will look for a file called test.slim in the root of your directory, convert it, and save as test.html | |
slimtohtml test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment