Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Easily embed JSFiddle in your articles

Project Description

Easily embed JSFiddle in your Pelican articles.

Installation

To install pelican-jsfiddle, simply install it from PyPI:

$ pip install pelican-jsfiddle

Then enabled it in your pelicanconf.py

PLUGINS = [
    # ...
    'pelican_jsfiddle',
    # ...
]

Usage

In your article or page, you simply need to add a line to embed your JSFiddle.

.. jsfiddle:: FIDDLE_ID

Which will result in:

<div class="jsfiddle">
<iframe allowfullscreen="allowfullscreen" frameborder="0" height="300" src="http://jsfiddle.net/<FIDDLE_ID>/embedded/js,resources,html,css,result/light/" width="100%">
</iframe>
</div>

Additional arguments

You can also specify a width, height, tabs and skin.

.. jsfiddle:: if1live/V2P28
    :width: 100%
    :height: 300
    :tabs: js,resources,html,css,result
    :skin: light

Which will result in:

<div class="jsfiddle">
<iframe allowfullscreen="allowfullscreen" frameborder="0" height="300" src="http://jsfiddle.net/if1live/V2P28/embedded/js,resources,html,css,result/light/" width="100%">
</iframe>
</div>

Release History

This version
History Node

0.1.0

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
pelican-jsfiddle-0.1.0.tar.gz
(3.7 kB) Copy SHA256 Hash SHA256
Source None Apr 13, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting