Module: Fill

Defined in:
lib/makeme/fill.rb

Class Method Summary collapse

Class Method Details

.fill(working_directory, absolute_file_path, guess_data, template_contents, options) ⇒ Object



4
5
6
7
8
9
# File 'lib/makeme/fill.rb', line 4

def self.fill(working_directory, absolute_file_path, guess_data, template_contents, options)
  template = ERB.new template_contents, nil, "%"
  fill_helpers = FillHelpers.new(working_directory, absolute_file_path, guess_data)

  template.result(fill_helpers.get_binding)
end