Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 22 lines (13 sloc) 0.702 kb


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


  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.