WordPress shortcode support for Django
Project description
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
Use pip install django-shortcodes or clone the Git repository.
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.
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
File details
Details for the file django-shortcodes-0.4.0.tar.gz
.
File metadata
- Download URL: django-shortcodes-0.4.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b0db35f04edcb45705048ea040db97b8cdf1e746589fb93c033923fad599e47 |
|
MD5 | 4ba5a9b179820c8e04138083eefdc393 |
|
BLAKE2b-256 | eec2a36528fcc47088046d16bd3ecef3dca2e03fbd2490424bcf4297ee08aa8c |
File details
Details for the file django_shortcodes-0.4.0-py2-none-any.whl
.
File metadata
- Download URL: django_shortcodes-0.4.0-py2-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9dbaac37b3c8ab06e643e063d356e6ce4794a72f381aa6a2567c7ed8c89e7e9 |
|
MD5 | 24785508820c6338b1d7d12627e4946a |
|
BLAKE2b-256 | fed53f967552d496e9d41368ec72d06dbbf319115e69c2d515fda065145116e2 |