Skip to main content

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

Project description

https://travis-ci.org/paetzke/django-orgco.png?branch=master https://coveralls.io/repos/paetzke/django-orgco/badge.png?branch=master

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 %}
https://d2weczhvl823v0.cloudfront.net/paetzke/django-orgco/trend.png

Project details


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 details)

Uploaded Source

Built Distribution

django_orgco-0.1.0-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-orgco-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-orgco-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a2cff4f8a0f06cf6e0779dfbe1c95a8fbfb0b34c6b5fc962837565f70799cd59
MD5 33d9e5d9bc848854f67416c6186a7ecc
BLAKE2b-256 a056730c0327b9eeeb132ae66eee8dc2e3afb25cd0f4752cc8dd0d599ca99581

See more details on using hashes here.

File details

Details for the file django_orgco-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_orgco-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e3bc0145455c3162777f7ccac52f12a92fb62c320d232efb83df38a0d39f4e4b
MD5 e2e97f18f124649fe34c785cf8fec001
BLAKE2b-256 bd04459097ab6c7553a54e276642b00ee77b5a27b6e37f036961be6de3af19ef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page