Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A template tag for a 'copy to clipboard' button, based on GitHub's Clippy.
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
clippy
tests
LICENSE
MANIFEST.in
README.rst
setup.cfg
setup.py

README.rst

Django-Clippy

Provides a template tag for a 'copy to clipboard' button, based on GitHub's Clippy.

Instructions

  1. Add clippy to INSTALLED_APPS

  2. In your template:

    {% load clippy %}
    <div id="mycode"><a href=""><img src="" alt="" /></a></div>
    {% clippy "<element_id>" "<size>" "<bgcolor>" "<wmode>" %}
    

The element_id parameter is mandatory. All other parameters are optional. Defaults are size='14x210', bgcolor='#FFFFFF', wmode='opaque'

Clippy's template can be overridden creating your own template file at clippy/clippy.html in your templates directory.

Something went wrong with that request. Please try again.