Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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


Release history Release notifications

History Node

0.1.0

This version
History Node

0.0.4

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_orgco-0.0.4-py2.py3-none-any.whl (4.2 kB) Copy SHA256 hash SHA256 Wheel 2.7 Dec 8, 2013
django-orgco-0.0.4.tar.gz (3.1 kB) Copy SHA256 hash SHA256 Source None Dec 8, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page