ride/web-template-smarty-minifier

Smarty template integration for the minifier of the Ride framework

1.0.0 2016-10-14 15:34 UTC

This package is auto-updated.

Last update: 2024-04-12 23:22:51 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