Ember CLI add-on for inserting Gists within ember templates.
Basic Information
ember install ember-cli-gisty
This add-on makes an Ember component available that will render the Gist in place when used in template.
For anonymous gists:
For Gists created under a particular Github user:
For retrieving a particular file from a Gist:
The hash for the Gist.
The Github user name if it is a private Gist. Assumes anonymous
if no user provided.
Will retrieve and render a particular file from a Gist when specified.
Gisty yields isError
and isLoading
component states to allow you to show loading spinners or custom error messages in your templates.
True when there is an error loading Gist.
True when the Gist is being retrieved from Github.
Exposes action to retrieve Gist from Github, useful if you wish you to retry fetching a Gist.
ember-cli-gisty is released under an MIT license and is freely distributable.