While we wait for Arras Theme 1.3.0 to get approved and posted up into the WordPress themes directory, let’s shift the focus back to the Buffet Framework.
I have been actively developing the framework, pushing in new ideas and finding simple approaches to make theme development much easier. If you have actually explored the repository up at Google Code, you would have noticed some additions into the framework.
One of the main features that I have been trying is to add support for Minify, which allows you to combine, minify and cache your CSS and JS files. WordPress actually has an internal caching feature for their CSS and JS files that will be implemented in 2.8, but it will only be used in admin. So to provide support for this app, the theme developer would probably have to do the following things:
- Define the path Minify is installed, with their own configuration.
wp_enqueue_scriptto add their own JS files instead of echoing out the HTML tags like you would normally do.
- Use a special framework function
bf_add_stylesheetto include your stylesheet instead of using
As long as the path to the installation path is defined, the framework will kick in and add an option into the admin to allow theme users to enable or disable the feature. An additional option will also appear to allow the users to delete the cache should they change anything in their CSS and JS files.
This feature should appear in the 0.6 stable release of the framework.