plugin_assets
This plugin adds the ability to automate the copying of plugin assets into your application’s public/ folder, in addition to providing tasks for semi-automatically performing updates.
= Description
Assets refer to the files you would normally find under your application’s public/ folder. This includes:- images
- javascripts
- stylesheets
- etc.
This idea of this plugin is to provide a little more automation for copying assets from plugins to your application’s public/ folder.
Automated asset copying
Automated asset copying occurs when your Rails application starts up. Immediately after initialization, all assets from your plugins are copied to your application. This can be controlled with the following:
PluginAWeek::PluginAssets.mirror_on_initialization = true
PluginAWeek::PluginAssets.plugins_to_mirror << 'plugin_xyz'
PluginAWeek::PluginAssets.write_once_plugins << 'plugin_xyz'
Please visit the home URL for a full description of these options.
Semi-automated asset copying Semi-automated asset copying refers to the use of the rake tasks that come bundled with this plugin. = assets:copy This task will mirror assets from your plugins, overwriting any and all existing files. = assets:update This task will mirror assets from your plugins, skipping any files that already exist, regardless of whether they are different.=== assets:list
This task will list all of the available assets for your plugins.
- Repository Path: http://svn.pluginaweek.org/trunk/plugins/action_pack/plugin_assets
- Homepage: http://wiki.pluginaweek.org/Plugin_assets
Tags
Currently tagged with:
You need to Login to tag this item.