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
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
File details
Details for the file django-shortcodes-0.3.0.tar.gz
.
File metadata
- Download URL: django-shortcodes-0.3.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f178a31028993b38ffe282b1ca918885e65c1f988ff7cbf825b3a1636920647 |
|
MD5 | 2cae5b2db12798806adb6bd564133bb4 |
|
BLAKE2b-256 | cb09511d50deaaafd21fe166d66d58d4e676590897c70400731392204210db5e |