Rails Asset Pipeline for Radiant CMS
Radiant extension adding extra tags for Rails3-like asset pipeline integration. Based on the Michael Grosser's backport of asset pipeline functionality: https://github.com/grosser/rails2_asset_pipeline
Installation
Add to your Gemfile:
gem "radiant-rails_asset_pipeline-extension"
If you want dynamic assets in development (and you do want them) - add config.ru from rails2_asset_pipeline to the root of your application.
Asset files can be stored in app/assets
, or radiant/assets
-
handy if you're also using
file_system_resources extension
with Radiant.
Usage
Stylesheets:
<r:stylesheet_link_tag source="application" />
Javascripts:
<r:javascript_include_tag source="application" />
Images:
<r:image_tag source="image.png" />
Asset path:
<r:asset_path source="application.css" />
Tasks
All tasks from rails2_asset_pipeline are available for you. For example, if you want to precompile all assets:
rake assets:precompile
to see all available tasks:
rake -T assets: