Asset Helper update
Monday, June 1st, 2009
Just last week I released Asset Helper, an implementation of some Rails AssetTagHelper methods in PHP. I wrote this for a Wordpress project and so making it a Wordpress plugin seemed natural.
Upon review, there’s very little that’s Wordpress-specific about it — it’s aware of WP theme locations but that’s really it. So I figured it would be more useful, both to myself and to others, as a general-purpose PHP library instead of just a Wordpress plugin. So I’ve just released Asset Helper 1.1 which removes the Wordpress requirement.
To use it on a non-Wordpress site, just place asset-helper.php somewhere your site can access it and include it before your site’s code begins:
<?php include_once 'asset-helper.php'; ?>
It still works with Wordpress, of course, either as an external library as shown here or as a standard plugin. The plugin interface is recommended for WP sites, as this will let you take advantage of the update notifications, but it works either way.
Read my Asset Helper overview for general information and the function reference for more details and an implementation guide.

