Display your Github repos with jQuery and Mustache.js
April 4th, 2013
After failing to keep a simple Markdown document with up-to-date information of
all my Github repositories I decided to skip using that method in favor of
something more efficient. I didn’t have to look any further than using
implementation of the Mustache templating engine.
The end result looks pretty neat, although I think I’m
going to tweak the UI a bit. I also created a repository for it on
This is the function itself:
And you simply use it like this:
Just replace gummesson with your own username and you’re good to go!
Pro-tip: If you’re planning to use
a Jekyll site like I do, don’t forget to wrap the
<script> template in a raw block.
I essentially only wanted to display the name, the URL and the language but you
can of course add about a million other things like the description, how many
forks the repo has and so forth.