Skip to main content

Cufon made easy in Django

Project description

Easy Cufon with Django. Django-cufon provides easy-to-use template tags for use with rendering Cufon text in your HTML with Django.

It provides:

  • A tag named {% cufon-script %} that includes the Cufon JavaScripts. This is meant to be put in HEAD.

  • A tag named {% cufon %} that handles rendering your Cufon texts.

read the docs for more information.

Example

In your HEAD be sure to include the Cufon scripts and your fonts:

{% load cufon %}
<html>
<head>
    <title>My awesome page</title>
    {% cufon-script %}
    <script language="text/javascript" src="{{ STATIC_URL }}fonts/my_cufon_font.js"></script>
    [...]

Then, in your body where you want to Cufon some text:

<h1>{% cufon "All your base are belong to us!" "MyAwesomeFont" %}</h1>

The above example will render the text All your base are belong to us! in the Cufon font called MyAwesomeFont

Documentation

For a little more documentation, though not much more, see the docs folder or read the documentation online

Authors & Special Thanks

django-cufon was written by Jonathan Enzinna

Many special thanks to Simo Kinnunen for creating Cufon in the first place.

Project details


Download files

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

Source Distribution

django-cufon-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file django-cufon-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-cufon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f5d86812ce1679ea6e01a7e98d05479376fda98ef70250d05b78d685ebeba97f
MD5 377278bce5759a0f3a48877d20af69f3
BLAKE2b-256 3370a443bb3ef4704e9b898f8ed7b14d253bb55ca7fa1fa4111c8297aee53aa2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page