Skip to main content

Lektor Plugin to pretify your HTML DOM using BeautifulSoup

Project description

html-pretify

PyPI version Downloads Linting Python package Yamllint GitHub Actions

Lektor plugin to pretify the HTML DOM using Beautiful Soup.

How does it actually work?

  • It uses Beautiful Soup.
  • It looks for rendered .html files and pipe it through Beautiful Soup, after opening the files via codecs.

Installation

You can install the plugin with Lektor's installer:

lektor plugins add lektor-html-pretify

Or by hand, adding the plugin to the packages section in your lektorproject file:

[packages]
lektor-html-pretify = 2.0.0

Python3

It is highly recommended to use this plugin with a python3 version of lektor.

Since lektor can be used as a python module it is possible to enforce this (after lektor is installed eg. with pip3 install --user --upgrade lektor) with the following command:

# run a python3 lektor server
python3 -m lektor server

Development

To test and/or develop on this plugin in your running lektor installation, simply place it in the packages/ Folder and have a look at the Lektor Docs

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

lektor-html-pretify-2.0.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

lektor_html_pretify-2.0.0-py3-none-any.whl (4.0 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