Download the PHP package diplix/html-pretty without Composer
On this page you can find all versions of the php package diplix/html-pretty. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download diplix/html-pretty
More information about diplix/html-pretty
Files in diplix/html-pretty
Package html-pretty
Short Description HTML Pretty-Print und Minifizierung für Kirby CMS
License MIT
Homepage https://github.com/diplix/kirby-html-pretty
Informations about the package html-pretty
Kirby HTML Pretty-Print Plugin
Formats Kirby HTML output and minifies JavaScript and CSS. I vibe coded this with cursor, but tested it extensively on https://wirres.net.
Features
- HTML formatting with indentation
- JavaScript minification
- CSS minification
- Removal of HTML comments
- Compatible with most Kirby caching mechanisms
- Disabled in debug mode
Installation
Copy the plugin directory to site/plugins/kirby-html-pretty/
Alternatively, you can install it with composer: composer require diplix/html-pretty
Configuration
You can configure the plugin options in your config.php:
Available Options
-
diplix.html-pretty.minifyJs(boolean, default:true)
Minifies inline JavaScript code. -
diplix.html-pretty.minifyCss(boolean, default:true)
Minifies inline CSS code. -
diplix.html-pretty.removeComments(boolean, default:true)
Removes HTML comments from the output. diplix.html-pretty.indentCharacters(string, default:' ')
Characters used for indentation (default: 4 spaces).
The plugin uses the page.render:after hook.
Additional Info
- Uses
wa72/html-pretty-minfor formatting - Hook:
page.render:after(runs after all other plugins) - Only active when
option('debug') !== true
All versions of html-pretty with dependencies
getkirby/composer-installer Version ^1.2
wa72/html-pretty-min Version ^0.3