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
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
..
handlers Support explicit defintion of resouce name for collection caching. 2015-07-07 16:57:09 -04:00
error.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
handlers.rb Change the default template handler from ERB to Raw. 2015-01-04 11:58:42 -03:00
html.rb Use the reference for the mime type to get the format 2014-02-18 16:12:51 -03:00
resolver.rb applies project style guidelines 2015-06-20 23:40:11 +02:00
text.rb Use the reference for the mime type to get the format 2014-02-18 16:12:51 -03:00
types.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00