Read_file_direct.rb
This content was produced by an LLM and could include errors.
This script requires the ERB library, loads an HTML template file, and then executes the template using result(binding) to process variables and generate final HTML content.
require 'erb'
#=> true
ERB.new(File.read('input/erb/file.html.erb')).result(binding)
#=> "<h1>header</h1>\n\n<p></p>\n"
Ruby 4.0.3