# 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
Parse shortcodes:
{% load shortcodes_filters %} {{ text|shortcodes|safe }}
Remove shortcodes (completely, including contents inside):
{% load shortcodes_filters %} {{ text|removeshortcodes|safe }}
Metadata
Release files for django-template-shortcodes 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-template-shortcodes-0.0.3.tar.gz | 5.7 kB | Without provenance | Details for django-template-shortcodes-0.0.3.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_template_shortcodes-0.0.3-py2.7.egg | Legacy Egg format | - | - | Details for django_template_shortcodes-0.0.3-py2.7.egg |
| django_template_shortcodes-0.0.3-py2-none-any.whl | Python 2 | none | any | Details for django_template_shortcodes-0.0.3-py2-none-any.whl |
Total release size: 29.6 kB
Release files / django-template-shortcodes-0.0.3.tar.gz
| Download URL | django-template-shortcodes-0.0.3.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
423ea88fced0e9ddd92adf0ab2e5b1ccebafa6352c0a0e5a2d840d3c04c53959
|
|
BLAKE2b-256 checksum How to use checksums |
72d6e85665a7af8e2ce9cb8a255b767129df34ce43025bb275e6b6b99e5a53f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_template_shortcodes-0.0.3-py2.7.egg
| Download URL | django_template_shortcodes-0.0.3-py2.7.egg |
|---|---|
| Size | 14.6 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
cda0bc8b3f8e41517065f4a62ffe0226b1cd09b2ede138c9a4fea82f9d167076
|
|
BLAKE2b-256 checksum How to use checksums |
c877aa50399493b3ae5ce0ff644e85f438371bb37250bea1e5e55bd249a498a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_template_shortcodes-0.0.3-py2-none-any.whl
| Download URL | django_template_shortcodes-0.0.3-py2-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
096670cc2fc01d8b9ac0ed38d9ae30fb9f4d9c820943e2f08d80b116d8524c9b
|
|
BLAKE2b-256 checksum How to use checksums |
4275fb7c5e5c31baa41a70e39a4cababd91f5f35ea148f7c3cd8a9df1cedf719
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-template-shortcodes 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.