ruby-ore / ore

Mine beautiful RubyGems from Ore
MIT License
241 stars 29 forks source link

Allow templates to contain Ruby modules #26

Closed postmodern closed 9 years ago

postmodern commented 12 years ago

Templates should be allowed to provide a template.rb file, which should contain a mixin that will be included into Ore::Generator. This mixins should have an initialize_#{name} method, to set instance variables. This mixin may also define helper methods, that can be used in the template's .erb files.

postmodern commented 9 years ago

Changed my mind, we shouldn't be encouraging arbitrary code in templates.