Skip to content

Instantly share code, notes, and snippets.

@JeffreyWay
Created September 7, 2011 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JeffreyWay/1201417 to your computer and use it in GitHub Desktop.
Save JeffreyWay/1201417 to your computer and use it in GitHub Desktop.
Using Slim in Simple PSD -> HTML Type Projects
# 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