Rails application template divided into sub-templates

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

Hello, you've got partial. Try searching rails partial.

But I am writing about templates you use when you are creating NEW APPLICATION by calling

rails depot -m template.rb

not about view templates. Guess partials don't really help here.

Hi, Jakub. Sorry I didn’t read your post carefully :p.