filler00 / mytcg-f3

Fat Free MyTCG - Online TCG Management
http://code.filler00.com/mytcg-f3/
GNU General Public License v3.0
11 stars 3 forks source link

Optimization #8

Closed tooblue closed 8 years ago

tooblue commented 9 years ago

Implement F3 minify and cache utilities.

http://fatfreeframework.com/optimization http://fatfreeframework.com/web#minify

tooblue commented 8 years ago

e47a12fbc0736154c3239d3c382deca890d5368d

Added the following options to config.ini:

;Static CSS Files
;ASSETS.css[0] = assets/css/style.css

;Static JS Files
;ASSETS.js[0] = assets/js/scripts.js

Example implementations:

<link rel="stylesheet" href="{{ @tcguri }}minify/css?files=app/themes/{{ @theme }}/assets/css/admin-style.css{{ ( isset(@ASSETS.css) && !empty(@ASSETS.css) ) ? ',' . implode(',',@ASSETS.css) : '' }}">
<script src="{{ @tcguri }}minify/js?files=app/themes/{{ @theme }}/assets/js/scripts.js{{ ( isset(@ASSETS.js) && !empty(@ASSETS.js) ) ? ',' . implode(',',@ASSETS.js) : '' }}"></script>