lib/gemstrapper.rb
def process_template(file_path, options)
		template_data = File.read(file_path)

		ERB.new(template_data).result binding
	end
##
# Reads an ERB file and populates the templated data from info in the
# current execution scope
# @param [String] file_path The absolute path of the ERB file
# @param [Hash] options A Hash of options passed in from command line
#     and generated dynamically. Is part of the execution scope so can be
#     used as part of the ERB template
# @return [String] the data from the ERB file filled out with data
Reads an ERB file and populates the templated data from info in the
current execution scope
Reads an ERB file and populates the templated data from info in the current execution scope
def process_template(file_path, options)
		template_data = File.read(file_path)
		ERB.new(template_data).result binding
	end
def process_template ( file_path , options ) template_data = File . read ( file_path ) ERB . new ( template_data ) . result binding end
Reads an ERB file and populates the templated data from info in the
current execution scope
Reads an ERB file and populates the templated data from info in the current execution scope
the data from the ERB file filled out with data
the data from the ERB file filled out with data
String
file_path
options
options A Hash of options passed in from command line and generated dynamically. Is part of the execution scope so can be used as part of the ERB template
options A Hash of options passed in from command line and generated dynamically . Is part of the execution scope so can be used as part of the ERB template