Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.49 KB

File metadata and controls

46 lines (35 loc) · 1.49 KB

Ride: Template Minifier (Smarty)

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