Skip to content

Instantly share code, notes, and snippets.

@picandocodigo
Created May 6, 2014 16:06
Show Gist options
  • Save picandocodigo/40119d6c64af5aaafc2f to your computer and use it in GitHub Desktop.
Save picandocodigo/40119d6c64af5aaafc2f to your computer and use it in GitHub Desktop.
#!/bin/sh
while true; do
inotifywait -e modify ../templates &&
handlebars ../templates/ -f ../js/templates.js
echo "Templates updated"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment