Skip to main content

Simple feature toggle tool for Leonardo CMS

Project description

Leonardo leonardo-feature-switcher

Simple feature toggle tool for Leonardo CMS

.. contents::


.. code-block:: bash

pip install leonardo-feature-switcher

add *feature_switchers* to LEONARDO_CONF_SPEC in your

'feature_switchers': {},

then in your modules add custom switchers::

'my_feature': lambda request, **kw: True,
'my_feature1': 'leonardo_feature_switcher.my_feature1'

and in your templates::

{% load feature_switcher %}

{% is_on "my_feature" %}

{% if my_feature %}

{% endif %}

Read More


Project details

Download files

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

Files for leonardo-feature-switcher, version 0.0.1.dev1
Filename, size File type Python version Upload date Hashes
Filename, size leonardo-feature-switcher-0.0.1.dev1.tar.gz (12.8 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