Skip to main content

Limited WordPress shortcode support for Django

Project description

# django-template-shortcodes

THIS IS EXPERIMENTAL STUFF. Don’t use it. Probably.

This package provides some [WordPress shortcode]( support for Django templates. It is heavily based on [AGoodId’s version of django-shortcodes]( (in turn based on, as well as [WP Export Parser]( for the regex parts, lifted from WordPress.

## Supported shortcodes (sort of):

  • [caption caption=”Foo bar”]<img src=”” alt=”” />[/caption]

  • [caption]<img src=”” alt=”” /> Foo bar[/caption]

  • [youtube=]

  • [youtube url=””]

  • [gmaps url=””]

  • [vimeo url=””]

  • [iframe url=””]

## Installation

Install via pip: pip install django-template-shortcodes Or clone the [Git repository](

## Usage

Parse shortcodes:

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

Remove shortcodes (completely, including contents inside):

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

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-template-shortcodes-0.0.3.tar.gz (5.7 kB view hashes)

Uploaded source

Built Distributions

django_template_shortcodes-0.0.3-py2.7.egg (14.6 kB view hashes)

Uploaded 2 7

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page