Embedding github gists

Inserting gists in to snippets is easy in launch.ly

If you are an avid github user like us, then you may want to include a gist in your snippets. We made a filter just to make things easier for us githubbers.

Here are two examples for you:

1{{ '1234' | gist }}

This will insert the gist with id 1234. If this is a multi-file gist, then all the gists will be inserted. However, if you wanted to target a single file in a multi-file gist, then this is what you are after …

1{{ '1234/filename.txt' | gist }}

… and whalla, perfect!

by Craig Sullivan

21 Mar 2012