第29回 開発時のHTML出力にテンプレートのファイル名をコメントとして追加する
development モードと test モードのときに、HTML出力のコメントに、どのテンプレートやパーシャルを使っているのかという情報を追加できるようになった。tohosaku.icon
view の開発のときにすごく便利。
.annotate_template_file_names annotates HTML output with template names #38848
Add the configuration option for annotating templates with file names to the generated app #39204
パッチ標題
Add template filenames as comments to HTML output development in development and test mode.
本文
This patch adds HTML comments to the rendered output indicating where each template begins and ends in development and test mode.
This feature has been added since rails 6.1.
開発者ツールのスクリーンショットを追加すると何をしたいのかが分かってもらいやすそう。
本家に投稿しました。tohosaku.icon
https://www.redmine.org/issues/38216