ride/web-template-smarty-minifier

Smarty template integration for the minifier of the Ride framework

2.0.0 2024-06-26 10:50 UTC

This package is auto-updated.

Last update: 2024-11-26 11:49:40 UTC


README

Smarty plugins for the Ride framework, used to minify and include javascript/css files in templates.

Code Sample

Javascript

{script src="js/jquery.js"}
{script src="js/main.js"}

{* minify javascript files and include them in the template *}
{scripts}

CSS

{style src="carbon/css/main.css"}
{style src="css/print.css" media="print"} {* Optional media parameter, defaults to 'all' *}

{* minify css files and include them in the template *}
{styles}

Related Modules

Installation

You can use Composer to install this application.

composer require ride/web-template-smarty-minifier