hiroshi / partial_annotation

A rails plugin which annotates beginning and end of partial by inserting a pair of comments.

This URL has Read+Write access

name age message
file MIT-LICENSE Loading commit data...
file README
file Rakefile
file init.rb
directory lib/
directory tasks/
directory test/
README
PartialAnnotation
=================

A rails plugin which annotates begnining and end of partial by inserting a pair of comments. See example below.

Example
=======
<%= render :partial => "/foo" %>

may become:

<!-- begin partial "_foo.html.erb" -->
  ... contents of foo
<!-- end partial "_foo.html.erb" -->

Install
=======
 $ script/plugin install git://github.com/hiroshi/partial_annotation.git

Todo
====
* Support templates other than html (e.g. Javascript commnets begin with "//")


Copyright (c) 2009 Hiroshi Saito (yakitara.com), released under the MIT license