pilif / sacy

Smarty Asset Compiler (warning: all branches but master are subject to force pushes)
http://pilif.github.com/sacy
MIT License
34 stars 12 forks source link

Smarty function #7

Open jszczypk opened 13 years ago

jszczypk commented 13 years ago

Hi,

I think, that it will be very useful to make Smarty function that makes takes a list of CSS or JS files, compiles them into one file as existing block function, but only outputs a path to compiled file - without any tags etc. This can be used to make delayed loading of JS and CSS possible.

Regards, Janusz

pilif commented 12 years ago

it's not optimal (as in: the interface pretty much sucks because it's an internal feature), but you can use sacy_generate_cache() which does exactly what you need.

I'll try to make this more convenient though.