writepython / django-shortcodes

A Django application to parse WordPress shortcodes.

Home Page:http://code.google.com/p/django-shortcodes/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-shortcodes

This package provides WordPress shortcode support for Django templates. It is based on code by Mark Steadman.

Support for different shortcodes are generated by parsers. The package currently includes a parser for YouTube videos. Additional parsers can be submitted for inclusion at the package's issue tracker.

Installation

Clone the Git repository.

Editor Usage

[youtube id=C058wv48oms w=400 h=200]

Template Usage

{% load shortcodes_filters %}
{{ text|shortcodes|safe }}

Settings

Vimeo

  • SHORTCODES_VIMEO_HEIGHT: Default height for Vimeo videos.
  • SHORTCODES_VIMEO_WIDTH: Default width for Vimeo videos.

YouTube

  • SHORTCODES_YOUTUBE_JQUERY: Boolean whether the jquery.flash plugin is available.
  • SHORTCODES_YOUTUBE_HEIGHT: Default height for YouTube videos.
  • SHORTCODES_YOUTUBE_WIDTH: Default width for YouTube videos.

About

A Django application to parse WordPress shortcodes.

http://code.google.com/p/django-shortcodes/

License:Other


Languages

Language:Python 95.3%Language:HTML 4.7%