survos/html-prettify-bundle

format HTML

Fund package maintenance!
kbond

Installs: 243

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.5.394 2023-12-07 20:31 UTC

This package is auto-updated.

Last update: 2024-11-21 23:47:25 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