Suggestion: Merging Rails application templates with generator functionality

Been working a bit lately on implementing Rails app. templates and
generators. It is clear there is a lot of overlap and that features
from generators could be used in app. templates and vice versa.
I will try to port some of the generator features such as the template
function (executing an .erb file and saving the resulting content as a
file in a specific location) to be used with app. templates, perhaps
as an app. templates extension (gem?).

What do you think? Is this already possible and convenient by other
means?

On Mon, Feb 1, 2010 at 6:11 AM, Kristian [email protected] wrote:

Been working a bit lately on implementing Rails app. templates and
generators. It is clear there is a lot of overlap and that features
from generators could be used in app. templates and vice versa.
I will try to port some of the generator features such as the template
function (executing an .erb file and saving the resulting content as a
file in a specific location) to be used with app. templates, perhaps
as an app. templates extension (gem?).

What do you think? Is this already possible and convenient by other
means?

As I understand it, Rails 3 is making generators and app templates
work on the same code base.

http://caffeinedd.com/guides/331-making-generators-for-rails-3-with-thor
http://benscofield.com/2009/09/application-templates-in-rails-3/


Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: Rick DeNatale - Developer - IBM | LinkedIn