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 %}
Metadata
Release files for django-orgco 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-orgco-0.1.0.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_orgco-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / django-orgco-0.1.0.tar.gz
| Download URL | django-orgco-0.1.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2cff4f8a0f06cf6e0779dfbe1c95a8fbfb0b34c6b5fc962837565f70799cd59
|
|
BLAKE2b-256 checksum How to use checksums |
a056730c0327b9eeeb132ae66eee8dc2e3afb25cd0f4752cc8dd0d599ca99581
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_orgco-0.1.0-py2.py3-none-any.whl
| Download URL | django_orgco-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e3bc0145455c3162777f7ccac52f12a92fb62c320d232efb83df38a0d39f4e4b
|
|
BLAKE2b-256 checksum How to use checksums |
bd04459097ab6c7553a54e276642b00ee77b5a27b6e37f036961be6de3af19ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |