django-orgco implements a template tag to use orgco easily in django templates
Project description
Copyright (c) 2013, Friedrich Paetzke (f.paetzke@gmail.com) All rights reserved.
django-orgco implements a template tag to use orgco easily in django templates.
How to use
Install the package via pip
$ pip install django-orgco
Add the package to your installed apps in settings.py.
INSTALLED_APPS = (
...
'django_orgco',
...
)
Then use it. Here is an example:
my_template.html:
{% load orgdoc %}
{% orgdoc %}
* header is here
- short1 :: long1
- short2 :: long2
- short3 :: long3
| th1 | th2 |
|-----+-----|
| td1 | td2 |
{% endorgdoc %}
To enable code highlighting add highlight to orgdoc:
{% orgdoc highlight %}
is_ok = True
{% endorgdoc %}
The tag does not produce safe output by default. You have to mark it as safe yourself:
{% load orgdoc %}
{% orgdoc highlight %}
{{ code|safe }}
{% endorgdoc %}
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-orgco-0.1.0.tar.gz.
File metadata
- Download URL: django-orgco-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2cff4f8a0f06cf6e0779dfbe1c95a8fbfb0b34c6b5fc962837565f70799cd59
|
|
| MD5 |
33d9e5d9bc848854f67416c6186a7ecc
|
|
| BLAKE2b-256 |
a056730c0327b9eeeb132ae66eee8dc2e3afb25cd0f4752cc8dd0d599ca99581
|
File details
Details for the file django_orgco-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: django_orgco-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3bc0145455c3162777f7ccac52f12a92fb62c320d232efb83df38a0d39f4e4b
|
|
| MD5 |
e2e97f18f124649fe34c785cf8fec001
|
|
| BLAKE2b-256 |
bd04459097ab6c7553a54e276642b00ee77b5a27b6e37f036961be6de3af19ef
|