module Templator

Public Instance Methods

render(file_path) click to toggle source
# File lib/generators/feature/templator.rb, line 3
def render(file_path)
  root = File.expand_path('../templates', __FILE__)
  template = File.read File.join(root, file_path)
  ERB.new(template, nil, '-').result binding
end