Skip to main content
https://travis-ci.org/if1live/pelican-jsfiddle.svg?branch=master https://coveralls.io/repos/if1live/pelican-jsfiddle/badge.png https://requires.io/github/if1live/pelican-jsfiddle/requirements.png?branch=master https://landscape.io/github/if1live/pelican-jsfiddle/master/landscape.png

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 files for pelican-jsfiddle 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pelican-jsfiddle 0.1.0
File Size Uploaded
pelican-jsfiddle-0.1.0.tar.gz 3.7 kB Details

Release files / pelican-jsfiddle-0.1.0.tar.gz

Download URL pelican-jsfiddle-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2225732a755838e15aa4f535c3d6eabe90a04cf61c6044e4b23ff43d370c6532
BLAKE2b-256 checksum
How to use checksums
eebf8a45c889fc8691e87052df9726d083f5155b74926dfe8b76ee7634f658b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page