added template function minify()