Metadata-Version: 2.1
Name: wagtail-accessibility
Version: 1.0.0
Summary: A plugin to assist with accessibility when developing in Wagtail.
Home-page: https://github.com/takeflight/wagtail-accessibility
Author: Wagtail Nest contributors
Author-email: hello@wagtail.org
License: BSD License
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Framework :: Django
Classifier: License :: OSI Approved :: BSD License
License-File: LICENSE
Requires-Dist: wagtail>=1.0

=====================
wagtail-accessibility
=====================

A plugin to assist with accessibility when developing in Wagtail. `Screencast demo <https://www.youtube.com/watch?v=QrgTrE0ug60>`_.

Installing
==========

Install using pip::

    pip install wagtail-accessibility

Then add 'wagtailaccessibility' to your INSTALLED_APPS. It works with Wagtail 1.0 and upwards.

Using
=====

This plugin, when added to your template, will add `tota11y <https://github.com/Khan/tota11y>`_ to all page previews. Tota11y is an accessibility visualization toolkit.

To use it, simply include this in your template, and from now on all page previews will include it.


.. code-block:: html

    {% load wagtailaccessibility_tags %}
    {% tota11y %}

Jinja2
======

This plugin also contains a jinja2 implementation, to use it, include the following in your config.

.. code-block:: python

    {
        'BACKEND': 'django.template.backends.jinja2.Jinja2',
        'OPTIONS': {
            'extensions': [
                ...
                'wagtailaccessibility.jinja2tags.tota11y',
            ],
        },
    }

The template tag can then be used like so.

.. code-block:: html

    {{ tota11y() }}
