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](http://en.support.wordpress.com/shortcodes/) support for Django templates. It is heavily based on [AGoodId’s version of django-shortcodes](https://github.com/AGoodId/django-shortcodes) (in turn based on https://code.google.com/p/django-shortcodes/), as well as [WP Export Parser](https://github.com/RealGeeks/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=https://www.youtube.com/watch?v=dQw4w9WgXcQ]
[youtube url=”https://www.youtube.com/watch?v=dQw4w9WgXcQ”]
[gmaps url=”https://www.youtube.com/watch?v=dQw4w9WgXcQ”]
[vimeo url=”https://www.vimeo.com/watch?v=dQw4w9WgXcQ”]
[iframe url=”https://www.vimeo.com/watch?v=dQw4w9WgXcQ”]
## Installation
Install via pip: pip install django-template-shortcodes Or clone the [Git repository](https://github.com/emilbjorklund/django-shortcodes).
## Usage
{% load shortcodes_filters %} {{ text|shortcodes|safe }}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-template-shortcodes-0.0.1a.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a97e8a6fb99867c7f8ad32772d13392b45afcd2fff26e6a21361224c2bc85897 |
|
MD5 | 215cab06ca0d1ca64a03c4c6562792eb |
|
BLAKE2b-256 | 1f3c8984482cdba13792aebdb5a2c7faa634df19f08249c5d55b45b81b34faee |
Hashes for django_template_shortcodes-0.0.1a-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 124a233964d7ff877a609a0830095aeaddbe0add209c2eb4ebffef55a43a0d85 |
|
MD5 | 30065ed7f8326c4a703cf039dd840123 |
|
BLAKE2b-256 | 1934d0e917ccb2c5676ffe610bf3249f146cabfa689375f4ae5e89548d037ed0 |