9 lines
		
	
	
		
			191 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
		
		
			
		
	
	
			9 lines
		
	
	
		
			191 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| 
								 | 
							
								require 'erb'
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class ErbWrapper
							 | 
						||
| 
								 | 
							
								  def generate_file(template, data, output_file)
							 | 
						||
| 
								 | 
							
								    File.open(output_file, "w") do |f|
							 | 
						||
| 
								 | 
							
								      f << ERB.new(template, 0, "<>").result(binding)
							 | 
						||
| 
								 | 
							
								    end
							 | 
						||
| 
								 | 
							
								  end
							 | 
						||
| 
								 | 
							
								end
							 |