Created
January 24, 2013 19:41
-
-
Save kara-ryli/4626905 to your computer and use it in GitHub Desktop.
Pipe Handlebars output directly to YUI Compressor, then save the results to a file of the same name.
This file contains hidden or 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
#!/bin/bash | |
handlebars $1 | java -jar ~/bin/yuicompressor.jar --type js -o ${1/.handlebars/.js} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This assumes, of course, that you've got yuicompressor.jar in /Users/{username}/bin on your Mac, and that both Java and Handlebars are installed and in your path.