Skip to content

Instantly share code, notes, and snippets.

View johnnyfreeman's full-sized avatar

John Freeman johnnyfreeman

View GitHub Profile
@johnnyfreeman
johnnyfreeman / gist_tag.rb
Created September 12, 2012 14:27 — forked from imathis/gist_tag.rb
A Liquid tag for Jekyll sites that allows embedding Gists and showing code for non-JavaScript enabled browsers and readers.
require 'cgi'
require 'digest/md5'
require 'net/https'
require 'uri'
module Jekyll
class GistTag < Liquid::Tag
def initialize(tag_name, text, token)
super
@text = text