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
John Hawthorn dd9991bac5 Deprecate rendering templates with . in the name
Allowing templates with "." introduces some ambiguity. Is index.html.erb
a template named "index" with format "html", or is it a template named
"index.html" without a format? We know it's probably the former, but if
we asked ActionView to render "index.html" we would currently get some
combination of the two: a Template with index.html as the name and
virtual path, but with html as the format.

This deprecates having "." anywhere in the template's name, we should
reserve this character for specifying formats. I think in 99% of cases
this will be people specifying `index.html` instead of simply `index`.

This was actually once deprecated in the 3.x series (removed in
6c57177f2c) but I don't think we can rely
on nobody having introduced this in the past 8 years.
2020-05-05 23:21:17 -07:00
..
handlers Raise errors on correct line with annotations enabled 2020-04-14 15:26:26 -06:00
sources Add ActionView::Template::Sources::File 2019-04-04 15:07:14 -07:00
error.rb Encode template source before extracting lines 2019-12-21 07:30:52 +00:00
handlers.rb active_support/deprecation has to be already required via active_support/rails.rb 2019-07-12 18:34:07 +09:00
html.rb active_support/deprecation has to be already required via active_support/rails.rb 2019-07-12 18:34:07 +09:00
inline.rb Add a finalizer to inline templates 2019-02-22 17:59:55 -08:00
raw_file.rb [ci skip] Updated the doc after renaming Template::File -> Template::RawFile in #35826 2019-04-02 14:03:43 +05:30
resolver.rb Deprecate rendering templates with . in the name 2020-05-05 23:21:17 -07:00
sources.rb Add ActionView::Template::Sources::File 2019-04-04 15:07:14 -07:00
text.rb Templates have one format 2019-02-25 13:18:44 -08:00
types.rb Fix broken doc layout for action_view [ci skip] 2017-08-27 09:12:19 +09:00