Skip to content

dmaslov/github-gist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<github-gist> Build Status

A Polymer element for displaying github gists

Demo

Check it live.

Installation

Install using Bower:

 bower install github-gist

Usage

  • Import Polyfill Web Components support for older browsers:
<script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
  • Import Custom Element:
<link rel="import" href="bower_components/github-gist/github-gist.html">
  • Start using it!
<github-gist gistid="e54a2ed1b12934d3e134"></github-gist>
  • You can use your own stylesheets

monokai.css

Provide path to your external css file to stylesheet attribute

<github-gist gistid="e54a2ed1b12934d3e134" stylesheet="themes/monokai.css"></github-gist>

We added example stylesheet monokai.css by @hofiorg in themes folder.

Feel free to populate our stylesheet library!

Options

Attribute Options Default Description
gistid string `` id of gist that will be loaded
stylesheet string `` path to css file

Examples:

<github-gist gistid="e54a2ed1b12934d3e134"></github-gist>

Tests

npm install -g web-component-tester
wct

License

MIT License