template_commenter

adds comments to start & end of .haml, .html, .rhtml, & .erb files

Adds comments to the beginning and end of template files so that you can easily tell which template generated which bit of the page after they’ve been mushed together by your web framework.

Note: for Rails you can probably just use the noisy_partials gem.

Prerequisites: Ruby

Usage

USAGE: template_commenter <path/to/starting/dir>
       adds comments to the start and end of all the
       .haml, .html, .rhtml, or .erb files it finds.
       Comments will make the start and end of each
       template file clear when viewing source on
       rendered pages.

Metadata:

Tags:

  • html
  • rails
  • ruby
  • sinatra
  • templating