Smarty Asset Compiler
Sacy turns
{asset_compile}
<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/file2.coffee"></script>
<script type="text/javascript" src="/jslib/file3.js"></script>
{/asset_compile}
into
<link type="text/css" rel="stylesheet" href="/assetcache/many-files-1234abc.css" />
<script type="text/javascript" src="/assetcache/many-files-abc123.js"></script>
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
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