Skip to main content

Pelican plugin wrapper for 'py-gesetze'

Project description

Pelican plugin for py-gesetze

pelican-gesetze links german legal norms, dependency-free & GDPR-friendly.

Installation

It's available from PyPi using a package manager of your choice:

# Using 'pip'
pip install pelican-gesetze

# Using 'poetry'
poetry add pelican-gesetze

Getting started

Using pelican-gesetze is straightforward: After installing it, the jinja filter gesetzify is available:

<p class="content">
    {{ page.content | gesetzify }}
</p>

Configuration

The following settings need to be prepended by GESETZE_ to work, eg for enabling full title attributes, define GESETZE_TITLE_ATTRIBUTE = 'full' in your settings (most likely pelicanconf.py).

Setting Type Default Description
DRIVER_ORDER `list str` ['gesetze', 'dejure', 'buzer', 'lexparency']
TITLE_ATTRIBUTE `str False` False
CUSTOM_ATTRIBUTES dict {"target": "_blank"} Defines HTML attribute defaults

For more information, see here.

Roadmap

  • Update README.md
  • Add tests

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

pelican-gesetze-0.1.0.tar.gz (15.7 kB view hashes)

Uploaded Source

Built Distribution

pelican_gesetze-0.1.0-py3-none-any.whl (15.2 kB view hashes)

Uploaded Python 3

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