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
django-orgco-0.0.4.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for django_orgco-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05f963b3ee7dd51fdea7a8012709601f53794d8c2332b344c82e03997dd7ad61 |
|
MD5 | abe61a84426c4c4b2f72c62162851f0d |
|
BLAKE2b-256 | e0b49bd7773561c20744289c690b4b419c3333e21560758bdff3659ca5dad9b2 |