New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to minify html output #411
Comments
Minifying HTML is an entirely separate concern. You should probably pass the output of mustache to a library made for that :) |
Give me example please. Here (https://www.geeksforgeeks.org/how-to-minify-html-code-of-php-page/amp/) is simple php code for minify. If you have time, please give me example.. |
I have no experience with HTML minification in PHP, but I'd find a library (maybe HtmlMin? ¯\_(ツ)_/¯) and look at its docs to see how to use it. I bet it looks something like this: $m = new Mustache_Engine(...);
$html = $m->render(...);
$htmlMin = new HtmlMin();
echo $htmlMin->minify($html); |
Thank you, it works! |
Can you add a option to minify html ?
Or can you tell me a variant for this ?
Thank you in advance!
The text was updated successfully, but these errors were encountered: