Created
August 13, 2013 22:13
-
-
Save joshareed/6226242 to your computer and use it in GitHub Desktop.
A simple GRASS plugin for embedding Gists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GistPlugin { | |
def config | |
def setupBinding(binding) { | |
binding.gist = { user, id -> | |
"""<script src="https://gist.github.com/${user}/${id}.js"></script>""" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment