added support for rhtml and erb templates