# lib_add_head_tail_html.rb # add header and tail to body (html) def add_head_tail_html html_file head=<<'EOS' gtk4 tutorial EOS tail=<<'EOS' EOS body = File.read(html_file) File.write(html_file, head+body+tail) end