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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-orgco, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django_orgco-0.1.0-py2.py3-none-any.whl (4.7 kB) File type Wheel Python version 3.3 Upload date Hashes View
Filename, size django-orgco-0.1.0.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page