2.0.2 • Published 6 years ago

vue-gist-embed v2.0.2

Weekly downloads
13
License
MIT
Repository
github
Last release
6 years ago

vue-gist-embed

A Vue.js component that allows to embed Github Gist. Based on Blair Vanderhoof's gist-embed (http://blairvanderhoof.com/gist-embed/)

This is a WIP, trying to learn NPM and Vue!

Installation

npm i --save-dev vue-gist-embed

Browser

Include the script file, then install the component with Vue.use(VueGistEmbed); e.g.:

<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/vue-gist-embed/dist/vue-gist-embed.min.js"></script>
<script type="text/javascript">
  Vue.use(VueGistEmbed);
</script>

Module

import VueGistEmbed from 'vue-gist-embed';

Usage

Once installed, it can be used in a template as simply as:

<vue-gist-embed :gistId="Your gist id"></vue-gist-embed>
2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago