1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/lib/action_view/template/handlers
Dov Murik 5a41d00455 Support explicit defintion of resouce name for collection caching.
If a template includes `# Template Collection: ...` anywhere in its
source, that name will be used as the cache name for the partial that is
rendered for the collection.

This allows users to enable collection caching even if the template
doesn't start with `<% cache ... do %>`.

Moreover, the `# Template Collection: ...` notation is recognized in all
template types (and template types other than ERB can define a
resource_cache_call_pattern method to allow the `cache ... do` pattern
to be recognized too).
2015-07-07 16:57:09 -04:00
..
builder.rb Move actionpack/lib/action_view* into actionview/lib 2013-06-20 17:23:15 +02:00
erb.rb Support explicit defintion of resouce name for collection caching. 2015-07-07 16:57:09 -04:00
raw.rb Freeze static arguments for gsub 2015-04-02 02:15:07 +03:00