My favorites | Sign in
Project Logo
                
Code license: New BSD License
Labels: rails, xml, caching
People details
Project owners:
  jtarchie

This is a simple plugin that allows Rails to support XML fragment caching within RXML documents. The system is built using the standard caching mechanism built into Rails -- similar to cache_erb_fragment.

Example Usage:

xml.instruct!   
cache_xml("director/#{@director.id}") do  
  xml.director :name=>@director.name, :age=>@director.age do
    @director.films.each do |film|
      xml.film :name=>film.name, :rating=>file.rating, :release_date=>film.release_date
    end
  end
end








Hosted by Google Code