Smarty Asset Compiler

View the Project on GitHub pilif/sacy

Sacy turns

<link type="text/css" rel="stylesheet" href="/styles/file1.css" />
<link type="text/x-sass" rel="stylesheet" href="/styles/file2.sass" />
<link type="text/x-scss" rel="stylesheet" href="/styles/file3.scss" />
<link type="text/x-less" rel="stylesheet" href="/styles/file4.less" />
<script type="text/javascript" src="/jslib/file1.js"></script>
<script type="text/coffeescript" src="/jslib/"></script>
<script type="text/javascript" src="/jslib/file3.js"></script>


<link type="text/css" rel="stylesheet" href="/assetcache/many-files-1234abc.css" />
<script type="text/javascript" src="/assetcache/many-files-abc123.js"></script>

What is it?

Transform, minify and merge external assets on your page into single, infinitely client-side-cacheable files without the hassle of build-script or manual asset versioning.

All done by a simple Smarty Plugin.


Latest release: 0.3.1

Latest prerelease: 0.4-beta1

What's new?

2012-04-30: Version 0.4-beta1 has just been released with support for inline-tags.

2012-04-26: Version 0.3.1 has just been released which restores support for PHP 5.2.


sacy is © 2012 by pilif available under the MIT license