Skip to content

Instantly share code, notes, and snippets.

@chrismytton
Created March 19, 2013 10:37
Show Gist options
  • Save chrismytton/5195130 to your computer and use it in GitHub Desktop.
Save chrismytton/5195130 to your computer and use it in GitHub Desktop.
Get a markdown list of your plain text email templates
for file in app/views/**/*.text.erb; do
echo && echo "# `basename $file`" && echo && cat "$file" | sed 's/^/ /'
done | redcarpet --parse-no_intra_emphasis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment