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 details)

Uploaded Source

Built Distribution

lektor_html_pretify-2.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file lektor-html-pretify-2.0.0.tar.gz.

File metadata

  • Download URL: lektor-html-pretify-2.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for lektor-html-pretify-2.0.0.tar.gz
Algorithm Hash digest
SHA256 639deac66fc00847e324be17c4aa605c30cdd5147ce243d94f873e48f915d0c5
MD5 316a8d3ec8c006cd491a6cb61d99c9f5
BLAKE2b-256 b89b100bb36aaf4a1a5da6885b897532b91a3dc97fc6e2feeaf7d2331e9f88c1

See more details on using hashes here.

File details

Details for the file lektor_html_pretify-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lektor_html_pretify-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 147bc9c2388fea8b0eab6ea845fd051c148fa7b6d52cb2d640e3b93aa0adf955
MD5 d1d97de10d1a7ffdc09450874bfdadf6
BLAKE2b-256 eac4cbb7d03c249837778467078c9c54e8106888c8047daa1a1ca28e5f278b7a

See more details on using hashes here.

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