Marco Cesarato - 2019-06-22 21:17:38 -
In reply to message 1 from BratSadLove
Hi,
I've read how filter the output on smarty and just use this:
function minify_html($tpl_output, Smarty_Internal_Template $template) {
$minifier = new Minifier();
$min_html = $minifier->minifyHTML($tpl_output);
return $min_html;
}
// register the outputfilter
$smarty->registerFilter("output", "minify_html");
$smarty->display($template);