Greetings!
I like the idea of application templates in Rails but having everything in one file is a big mess so I decided to divide it into smaller chunks. Since I haven't been able to figure out any "standard" or "better" way how to do it, here is my solution - the sub_template method - just put it to your template.rb and use it (you just have to specify the '-m' option with full path and do not to use some remote repository). Btw - is there some better/cleaner way how to do it?
Example