Kristian
2010-Feb-01 11:11 UTC
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? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Rick DeNatale
2010-Feb-01 14:25 UTC
Re: Suggestion: Merging Rails application templates with generator functionality
On Mon, Feb 1, 2010 at 6:11 AM, Kristian <kmandrup-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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: http://www.linkedin.com/in/rickdenatale -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.