Use Gistex to load up Github Gist Snippets

Gistex is an easy to use tool to spawn up Github Gist snippets using AJAX

The other day I decided on embedding Github Gist code snippets into yearofmoo instead of regular home-grown code blockquote areas. Gist is awesome, but the standard Javascript embeds do not work with a pure ajax website (like this one). So the only way to get them to work was todo some voodoo JavaScript and then … voila … Gistex was born.

Last Updated

This page was last updated on December 18th 2011 and was first published on December 18th 2011

Gistex?

Yes Gistex. It loads a Github Gist snippet, creates the HTML and pastes it into the DOM element that you wish to apply it to. This is great for AJAX applications and lazy loading. It is also supported in all browers and is NOT dependent on any JavaScript framework. The Gistex class is very simple, and provides support for numerous callbacks and options.

Where can I get it?

Gistex is hosted here on yearofmoo.

Click here to view the documentation and demos.

Add Your Comment