skip to navigation
skip to content

django-orgco 0.1.0

django-orgco implements a template tag to use orgco easily in django templates

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 %}
 
File Type Py Version Uploaded on Size
django-orgco-0.1.0.tar.gz (md5) Source 2014-01-21 3KB
django_orgco-0.1.0-py2.py3-none-any.whl (md5) Python Wheel 3.3 2014-01-21 4KB