survos/html-prettify-bundle

format HTML

Fund package maintenance!
kbond

Installs: 245

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.5.442 2024-11-24 12:52 UTC

This package is auto-updated.

Last update: 2024-12-15 17:32:18 UTC


README

Wrap the html-prettify javascript package in a stimulus controller. Also, provide a function for HTML indentation.

composer req survos/html-prettify-bundle

Complete Working Demo (without opening an editor)

symfony new PrettifyDemo --webapp && cd PrettifyDemo
composer config repositories.survos_prettify '{"type": "vcs", "url": "git@github.com:survos/HtmlPrettifyBundle.git"}'
composer req survos/html-prettify-bundle
yarn install --force
yarn encore dev
bin/console make:controller AppController
sed -i "s|/app|/|" src/Controller/AppController.php 
sed -i "s|<h1|{{ render_hello() }}<h1|" templates/app/index.html.twig
symfony server:start