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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f26f3ebe95ee3de9ea37fe931d3a1765ee3bfc4d5ceb405aa07c32b7644720e7 |
|
MD5 | 49165c3a73b80a44acbe628a3f59ae91 |
|
BLAKE2b-256 | 5414743aa4067fe20cd8939f04f1daaa41115b37f507ff9d1f2d554b7ed0f79b |
Hashes for django_template_shortcodes-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68988e91e96604eab02eb2fb8444acf05a1557cd34e63b62ae52d9f6785c6650 |
|
MD5 | f66e9fe5d1b6e8c29f7d503633a8eab9 |
|
BLAKE2b-256 | 68448bfcd924bb8c35ee0729be6e7f741cc465fe5a3c93cec749c411bad54026 |