<x-imdb>
A Polymer element to display information from IMDB.
Maintained by Neil Kistner.
Demo
Installation
Using Bower, run:
bower install x-imdb --save
Usage
-
Import Web Components' polyfill:
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.3.4/polymer.js"></script>
-
Import Custom Element:
<link rel="import" href="x-imdb.html">
-
Start using it!
<x-imdb><x-imdb>
Examples
Display information from IMDB for 'The Social Network':
<x-imdb imdbid="tt1285016"><x-imdb>
Setup
In order to run it locally you'll need a basic server setup.
-
Install NodeJS.
-
Install GruntJS:
$ npm install -g grunt-cli
-
Install local dependencies:
$ npm install
-
Run a local server and open
http://localhost:8000
.$ grunt connect
Options
Attribute | Options | Default | Description |
---|---|---|---|
imdbid |
string | null |
The IMDB ID of the movie to display. |
layout |
string | debug |
Changes the way the data is displayed. |
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D