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.1.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for django_orgco-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3bc0145455c3162777f7ccac52f12a92fb62c320d232efb83df38a0d39f4e4b |
|
MD5 | e2e97f18f124649fe34c785cf8fec001 |
|
BLAKE2b-256 | bd04459097ab6c7553a54e276642b00ee77b5a27b6e37f036961be6de3af19ef |